mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
a35f7c73ae
The first problem was with the ScrollView skin, which had a full-sized client area. Since the scrollbar starts out visible, MyGUI expects the client area to be smaller to accomodate for the scrollbar width. As a result, the starting canvas size becomes bigger than the view size. Another bug was with the MWList code: reducing the canvas size for the scrollbar is not needed, since MyGUI is already doing that, and attempting to do it manually interferes with the view offset.
16 lines
609 B
XML
16 lines
609 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<MyGUI type="Skin">
|
|
|
|
<Skin name="MW_ScrollView" size="516 516">
|
|
<Child type="Widget" skin="" offset="0 0 502 516" align="Stretch" name="Client"/>
|
|
<Child type="MWScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="Right Top VStretch" name="VScroll"/>
|
|
</Skin>
|
|
|
|
<Skin name="MW_ScrollViewH" size="516 516">
|
|
<Child type="Widget" skin="" offset="0 0 516 502" align="Stretch" name="Client"/>
|
|
<Child type="MWScrollBar" skin="MW_HScroll" offset="3 498 509 14" align="Left Bottom HStretch" name="HScroll"/>
|
|
</Skin>
|
|
|
|
</MyGUI>
|