Fix diplay bux in the attribute-panel of the GUIEditor. Fixes bug 3517314 (thx @Darkcoder for reporting).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4253 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2012-07-20 16:32:26 +00:00
parent d439c11f54
commit 2de64d5e6c
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
Changes in 1.8 (??.??.2011)
- Allow caching cursor position on X11 to work around slow XQueryPointer calls.
- Fix diplay bux in the attribute-panel of the GUIEditor. Fixes bug 3517314 (thx @Darkcoder for reporting).
- Allow caching cursor position on X11 to work around slow XQueryPointer calls (thx @Hendu for reporting+patch proposal)
- Struct packing works now with gcc 4.7 changes on MinGW (thx @Sudi for reporting).

View File

@ -198,7 +198,7 @@ bool CGUIPanel::OnEvent(const SEvent &event)
void CGUIPanel::moveInnerPane()
{
core::dimension2d<s32> dim = InnerPane->getAbsolutePosition().getSize();
core::position2d<s32> newpos(-HScrollBar->getPos(), -VScrollBar->getPos());
core::position2d<s32> newpos(HScrollBar->isVisible() ? -HScrollBar->getPos() : 0 , VScrollBar->isVisible() ? -VScrollBar->getPos() : 0);
core::rect<s32> r(newpos, newpos + dim);
InnerPane->setRelativePosition(r);
}