StaticText VertScrollbar over Text

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

zaexage
Just popping in
Just popping in
Posts: 15
Joined: Wed Mar 02, 2011 02:43

StaticText VertScrollbar over Text

Postby zaexage » Fri Jul 08, 2011 08:32

like the thread said: http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=5213

Things go like this:
setText --> FalagardStaticText::onTextChanged --> configureScrollbars :

in configureScrollbars,
1. getDocumentSize() will call FormattedRenderedString::format(), under the old renderArea;
2. scrollbar visibility is updated;
3. new renderArea is calculated; if the new renderArea is smaller than old one, the renderedString will be clipped.

my quick fix is :
if the new renderArea differs with old one,
then add updateFormatting() after new renderArea is calculated;

Well, I'm not sure if this is the best solution but it seems to work for now :)

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: StaticText VertScrollbar over Text

Postby Kulik » Fri Jul 22, 2011 20:12

Thanks for spotting this, I wonder if it's in mantis already :-/

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: StaticText VertScrollbar over Text

Postby Jamarr » Tue Jul 26, 2011 16:24

If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 16 guests