Messages by Lorreyan

2 topics, 2 messages
Kuix bug report » ScrollPane in or after Container issure

Use the official demo, modify widgets.xml and add a container before the scrollpane like this:

<tabitem label="List" style="layout:borderlayout;">

<_enabled>@{bList}</_enabled>

                        <container><text>testtext-1<text><text>testtext-2</text></container>

<scrollPane>

<list>

<listitem>

<text>Stone</text>

<picture>stone.png</picture>

</listitem>

<listitem>

<text>Leaf</text>

</listitem>

<listitem>

<picture>scissors.png</picture>

<text>Scissors</text>

</listitem>

<listitem>

<textarea>A paragraph long enough to take up two lines</textarea>

</listitem>

</list>

</scrollPane>

</tabitem>

Run it. Only container part display and the scrollpane lost, in debug mode, the scrollpane is initialized but the doLayout method not invoked.

Modify the xml again and put the scrollpane in a container, the scrollpane is back, but if the listitems are more enough and go outside the screen, the scrollpane can not scroll with press the DOWN_KEY, but the listitems outside screen can be selected.

Kuix technical support » Problem with scrollPane in or next to a container

The xml is very simple, but it troubles me many days, here is the XML demo:

<screen>
  <screenTopbar />
  <container  style="align:fill-top;layout:inlinelayout(false,fill)" id="titlecontainer">
        <container class="sumBar" style="align:top;layout:gridlayout(2,1)">
            <text style="align:left">%billList.label.total(@{total})%</text>
            <text style="align:right">%billList.label.checked(@{checked})%</text>
        </container>
        <container class="titleBar" style="align:top;layout:gridlayout(4,1)">
            <container class="titleBarCell">%title1%</container>
            <container class="titleBarCell">%title2%</container>
            <container class="titleBarCell">%title3%</container>
            <container class="titleBarCell">%title4%</container>
        </container>
  </container>
  <scrollpane id="listscrollpane">
        <list>
             <listitem></listitem>
             ....
        </list>
  </scrollpane>
</screen>

The problem is:


1. When I put the scrollpane next to a containter (as the DEMO xml):
The scrollpane will not display!! Looks like there is not scrollpane defined.

2. When I put the scrollpane which id is "listscrollpane" in the container "titlecontainer".
The scrollpane displayed, if there's listitem outside the screen, when I press the DOWN key to focus the selected listitem, no scrollbar display and the scrollpane can't scroll, but the listitem outside the screen can still be focused use the DOWN key...

Any assistant? Thanks a lot!