robotools / vanilla

A Pythonic wrapper around Cocoa.
MIT License
78 stars 28 forks source link

0.3.0 broke something on macOS 10.10 #187

Open justvanrossum opened 1 year ago

justvanrossum commented 1 year ago

In FontGoggles, clicking on the "Variations" tab makes the whole tab move to the bottom of the parent, rendering it unusable.

0.3.0: image

0.2.4: image

This does not seem to happen on macOS 10.15.

It may not be worth fixing this, but I thought I could at least document it.

typemytype commented 1 year ago

macOS 10.10 is released in 2014....

I guess a more clear statement of vanilla support over different macOS version could help here...

We should consider that we cannot keep up supporting the latest macOS with losing older macOS versions.

justvanrossum commented 1 year ago

What would be the next reasonable lowest version? 10.15? 10.14?

typemytype commented 1 year ago

no idea...

things to consider:

typemytype commented 1 year ago

does it happens for each tab view? or only a tab view inside a splitview?

maybe a small example?

the change in vanilla was a move for the tab view to a NSTabViewController

justvanrossum commented 1 year ago

Hard to say, I but I'll try to make a small reproducer.

khaledhosny commented 1 year ago

I got a report of a similar issue affecting macOS 11.7 https://github.com/Nagwa-Limited-Community/Glyphs-MATH-Plugin/issues/5

chrisjansky commented 1 year ago

Related: SegmentedButton doesn’t respect posSize for me on Mac OS 12.3.1

Screenshot:

image

Test case:

import vanilla

def run():
    w = vanilla.Window(
        (400, 400),
    )
    w.btn = vanilla.SegmentedButton(
        (10, 10, -10, 20),
        [
            dict(title="Very Long Title"),
            dict(title="Another Long Title"),
            dict(title="Long Title Indeed"),
        ],
    )

    w.open()
    w.center()

run()

Same code executed with executeVanillaTest works fine:

image
typemytype commented 1 year ago

could you test with the latest vanilla from the repo? the vanilla version on pypi is behind

chrisjansky commented 1 year ago

@typemytype Not sure I follow, I am using vanilla v0.3.0 which looks like the latest version here on GitHub Releases also

typemytype commented 1 year ago

true, but the latest commit is newer and already fixed this issue, sorry for being lazy on the releases

pip3 install git+https://github.com/robotools/vanilla to install the latest from this repo

justvanrossum commented 5 months ago

This issue still persist, even in the latest version in git.