Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10225 closed bug (invalid)

Message box text layout does not take varying font size into account

Reported by: waddlesplash Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

...so that if the message box has a line with 16pt font with all the other lines being 14pt, the last row of text will be partly cut off.

Example: BePDF. Clone source from https://github.com/HaikuArchives/BePDF and then delete the last \n at BepdfApplication.cpp#L61

Then compile using build.sh and look at the about box (Help -> About).

Change History (2)

comment:1 by anevilyak, 10 years ago

Resolution: invalid
Status: newclosed

When manually tinkering with the textview directly as the highlighted code does, it's up to the caller to handle resizing the alert properly afterwards, as the alert has absolutely no idea you've tweaked the view content. Furthermore, it's completely unaware of styling, as that's not something inherently supported by it, so the above is especially true here.

comment:2 by axeld, 10 years ago

While that is true, a layout aware BAlert would be nice. I'm just not sure how to do that best -- ie. if it is really necessary to have a non-layout aware version of it for backwards compatibility.

Note: See TracTickets for help on using tickets.