Commit 2de64d5e authored by cutealien's avatar cutealien

Fix diplay bux in the attribute-panel of the GUIEditor. Fixes bug 3517314 (thx...

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
parent d439c11f
Changes in 1.8 (??.??.2011) 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). - Struct packing works now with gcc 4.7 changes on MinGW (thx @Sudi for reporting).
......
...@@ -198,7 +198,7 @@ bool CGUIPanel::OnEvent(const SEvent &event) ...@@ -198,7 +198,7 @@ bool CGUIPanel::OnEvent(const SEvent &event)
void CGUIPanel::moveInnerPane() void CGUIPanel::moveInnerPane()
{ {
core::dimension2d<s32> dim = InnerPane->getAbsolutePosition().getSize(); 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); core::rect<s32> r(newpos, newpos + dim);
InnerPane->setRelativePosition(r); InnerPane->setRelativePosition(r);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment