开发者

ZK using button width 100% in hlayout

开发者 https://www.devze.com 2023-02-26 13:13 出处:网络
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-innersets.z-hlayout-inner { display: inline-block;}and this does

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

精彩评论

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