开发者

ZK using button width 100% in hlayout

I have the following code that I am trying to set but开发者_StackOverflow中文版ton width=100% in hlayout. But it does not set. z-hlayout-inner sets .z-hlayout-inner { display: inline-block;}and this does not allow to make button width hole div. If I remove it on firebug my button covers hole div.

<grid>
<columns> 

  <column />
<column/>
</columns>

    <rows>  

<row>
                    <hlayout>

                            <button
                                label="ASD" width="100%"
                                forward="onClick=onOK">
                            </button>

                        </hlayout>
                        <hlayout  >

                            <button
                                label="FGH"
                                width="100%" forward="onClick=onMainMenu">
                            </button>

                        </hlayout>
                    </row>

                </rows>
            </grid>


You can use the attribute hflex="1" instead of the attribute width="100%"

For example,

<button
     label="ASD" hflex="1"
     forward="onClick=onOK">

For more details, please refer to this tutorial

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜