Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not calculate palette height on PaletteWindowWidget - Fixes #4792 #247

Merged
merged 1 commit into from Aug 7, 2015

Conversation

godiard
Copy link
Contributor

@godiard godiard commented Aug 7, 2015

To solve ticket #4673, we calculate the palette size using the size
of all the widgets [2]. That solves the problem on Palettes based on
_PaletteMenuWidget but on _PaletteWindowWidget produce a wrong value
when the secondary_label is not null, and as a consequence
the palette position is wrong.
The solution is do the calculation only for _PaletteMenuWidget based
palettes.

[1] https://bugs.sugarlabs.org/ticket/4673
[2] b9d6b62

To solve ticket #4673, we calculate the palette size using the size
of all the widgets [2]. That solves the problem on Palettes based on
_PaletteMenuWidget but on _PaletteWindowWidget produce a wrong value
when the secondary_label is not null, and as a consequence
the palette position is wrong.
The solution is do the calculation only for _PaletteMenuWidget based
palettes.

[1] https://bugs.sugarlabs.org/ticket/4673
[2] b9d6b62
@godiard
Copy link
Contributor Author

godiard commented Aug 7, 2015

These palette issues are tricky, please test carefully.

@samdroid-apps samdroid-apps added this to the 0.108 milestone Aug 7, 2015
@samdroid-apps
Copy link
Contributor

Does not create any visual changes in write activity, the shell or the journal

@samdroid-apps samdroid-apps merged commit 9314fd8 into sugarlabs:master Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants