littleflylongbow / guichan

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

Icons within scrollAreas within containers within tabs won't scroll #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a tab, container, scrollarea, and an icon.
2. Place the container within the tab, the icon within the scrollarea, and
the scrollarea within the container.
3. Try to scroll normally.

What is the expected behaviour?

The icon image should scroll around.

What happens instead?

The scroll bars move, but the image stays in the same place

What version of the product are you using?

GuiChan 0.8.2

On what operating system?

Windows Vista

Which back-end (SDL/Allegro/OpenGL/other)?  

SDL 1.2.13

Please provide any additional information below.

Everything else works fine. The scrollarea of the drop down widgets work fine.

Here is the code I use to set up the scrollarea and icon widgets

    // The Print Tab
    cPrintTab = new gcn::Container();
    cPrintTab->setDimension(gcn::Rectangle(0, 0, 800, 535));
    cPrintTab->setPosition(0, 0);
    cPrintTab->setId("PrintContainer");
    tabs->addTab("Print", cPrintTab);

    // Add the character sheet picture
    gcn::Image * image = image->load("BlankCharacterSheet01.png");
    gcn::Icon * sheet = new gcn::Icon(image);
    gcn::ScrollArea * sheetScroll = new gcn::ScrollArea(sheet);
    sheetScroll->setWidth(800);
    sheetScroll->setHeight(535);
    sheetScroll->setPosition(0, 0);
    sheetScroll->setFrameSize(1);
    cPrintTab->add(sheetScroll);

Original issue reported on code.google.com by lokia...@gmail.com on 20 Apr 2010 at 11:50