mettli / guichan

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

Window->scrollarea->container->scrollarea->container problem #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create 2 container, 2 scroll area and 1 window
2. Put the containers in the scroll areas
3. Put 1 scroll into the window, and the other scroll into the container 
the 1st scroll is holding

What is the expected behaviour?

-When scrolling the larger scroll area, the 2nd scroll area and container 
will be scrolled out.

-When moving the window out of screen, the scroll areas and containers will 
be moved out.

What happens instead?

-A visual error involving the containers remaining onscreen because of the 
size of the container

What version of the product are you using? On what operating system? Which 
back-end (SDL/Allegro/OpenGL/other)?

Using GUICHAN ver 0.8.1

Please provide any additional information below.
Screenshots attached

Original issue reported on code.google.com by sdarkpal...@gmail.com on 11 Sep 2009 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
Edit:

It will occur if a larger container widget is placed into a smaller container 
widget 
and moving out of screen

Original comment by sdarkpal...@gmail.com on 14 Sep 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Problem solved by adding in 2 lines of code in 

bool Graphics::pushClipArea(Rectangle area)

Original comment by sdarkpal...@gmail.com on 17 Sep 2009 at 7:14

GoogleCodeExporter commented 9 years ago
That's great. Can you share the code?

Original comment by olof.nae...@gmail.com on 17 Sep 2009 at 9:11

GoogleCodeExporter commented 9 years ago
The problem arise because the width and the height of the object was not 
calculated and 
reduced appropriately. Will post the code when i find it.

Original comment by sdarkpal...@gmail.com on 30 Oct 2009 at 11:50

GoogleCodeExporter commented 9 years ago
Have you looked at the 0.8.2 source, perhaps the bug is fixed?

Original comment by olof.nae...@gmail.com on 1 Nov 2009 at 1:56