littleflylongbow / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

TabbedArea getChildrenArea().height includes the height of the tabs #136

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Container container;

TabbedArea tabs;
tabs.setSize(300, 300);
tabs.addTab("A tab", &container);

tabs.getChildrenArea().height; // should be less than 300 (excluding the 
borders), but is in fact, 300

What is the expected behaviour? What happens instead?
tabs.getChildrenArea().height should return the height without the height of 
the tabs themselves, i.e.

Tab t("foo");
t.adjustSize();
tabs.getChildrenArea().height - t.getHeight(); // THIS

What version of the product are you using? On what operating system? Which 
back-end (SDL/Allegro/OpenGL/other)?
I am using the SFML backend on Mac OS X Snow Leopard, but this is not operating 
system-related. This is because TabbedArea::getChildrenHeight has not been 
overloaded.

Original issue reported on code.google.com by Erik.rot...@gmail.com on 10 Oct 2010 at 10:29