Opened 11 months ago

Last modified 2 months ago

#15222 new bug

Font menu is wrongly placed in StyledEdit

Reported by: miqlas Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/StyledEdit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

See the attached screenshot, i haven't seen it anywhere else.

Haiku shredder 1 hrev53313+1 Jul 28 2019 13:36:2 x86_64 x86_64 Haiku

Attachments (2)

zOzN.png (174.0 KB ) - added by miqlas 11 months ago.
zOzq.png (235.2 KB ) - added by miqlas 11 months ago.

Download all attachments as: .zip

Change History (7)

by miqlas, 11 months ago

Attachment: zOzN.png added

by miqlas, 11 months ago

Attachment: zOzq.png added

comment:1 by miqlas, 11 months ago

The list opens in non-ideal direction and it is not possible to scroll the content.

comment:2 by humdinger, 11 months ago

Related to #14932 ?

comment:3 by miqlas, 11 months ago

Humdinger: yeah, related, but that doesnt say a word about the unideal opening direction.

comment:4 by nephele, 4 months ago

I can't reproduce this, it always opens for the full height for me (and noto sure is a huuuge list, atleast with what i have installed) I run hrev53924 currently, does this only happen with a small font list?

comment:5 by un_spacyar, 2 months ago

Hello. I'm able to reproduce this issue, in recent nightly (hrev54121 x86_gcc2). I guess the problem is here:

If the height from the bottom to the menu option is not enough to display the entire content of the list, Haiku tries to show the menu content "to upside" (like in the original post). Probably assume that the window is near the botton of the screen, and then, tries to use the upper screen space to show the entire list.

However, if the list is long enough (for example, the font list in StyleEdit, where you can had dozens of differents fonts installed), the list cant be completely showed (neither to lower, or upper the screen).

I guess the problem is that Haiku calculate and compare the dropdown menu height, to the height to the lower botton of the screen; but don't do that to the upper height.

Note: See TracTickets for help on using tickets.