Width of selection xtype | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dinu_Arya

What I mean to say is try with 100% of anchor. If you observe any change in width of the the selection field, adjust anchor value to yours 150 px. To verify it, create a field of xtype textfield below or on above of it. Give width 150px to the textfield and compare with selection xtype.

http://dev.day.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.form.Selection

http://dev.day.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.Ext.layout.AnchorLayout

3 replies

Dinu_Arya
Level 6
October 16, 2015

Hi,

Try to give only anchor="100%"

Thanks,

Arya.

trench999
trench999Author
Level 4
October 16, 2015

Why would that result in a 150px wide selection?  

Dinu_Arya
Dinu_AryaAccepted solution
Level 6
October 16, 2015

What I mean to say is try with 100% of anchor. If you observe any change in width of the the selection field, adjust anchor value to yours 150 px. To verify it, create a field of xtype textfield below or on above of it. Give width 150px to the textfield and compare with selection xtype.

http://dev.day.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.form.Selection

http://dev.day.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.Ext.layout.AnchorLayout