Wrong width value used in TabControl::performChildWindowLayout

Create issue
Issue #351 resolved
Former user created an issue

Automatic migration. Original reporter: "Timo"

It's quite simple thing; here's a patch:

Index: cegui/src/elements/CEGUITabControl.cpp

--- cegui/src/elements/CEGUITabControl.cpp (revision 2498) +++ cegui/src/elements/CEGUITabControl.cpp (working copy) @@ -591,7 +591,7 @@ --i; float xmax = d_tabButtonVector [i]->getXPosition ().d_offset + d_tabButtonVector [i]->getPixelSize ().d_width; - float width = tabContentPane->getPixelSize ().d_width; + float width = tabButtonPane->getPixelSize ().d_width;

If right button margin exceeds right window margin, or leftmost button is at offset 0, finish

Reproducibility: N/A

Comments (1)

  1. Log in to comment