Expand my Community achievements bar.

SOLVED

Width of selection xtype

Avatar

Level 4

I've used:

width = "150"

AND

anchor = ""
width = "150"

Both do not work.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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

View solution in original post

3 Replies

Avatar

Level 7

Hi,

Try to give only anchor="100%"

Thanks,

Arya.

Avatar

Level 4

Why would that result in a 150px wide selection?  

Avatar

Correct answer by
Level 7

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