dialog size bug | Community
Skip to main content
New Participant
October 16, 2015
Solved

dialog size bug

  • October 16, 2015
  • 2 replies
  • 605 views

Hi everybody,
I'm using CQ5.5 and i have a problem with the size of components inside a dialog window.
This is an example to display my problem:

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" xtype="dialog"> <items jcr:primaryType="cq:WidgetCollection"> <tabs jcr:primaryType="cq:TabPanel"> <items jcr:primaryType="cq:WidgetCollection"> <dialog_tab1 jcr:primaryType="cq:Panel" title="Everyday Banking"> <items jcr:primaryType="cq:WidgetCollection"> <messageFunc1 jcr:primaryType="cq:Widget" height="90" xtype="richtext"/> </items> </dialog_tab1> <dialog_tab2 jcr:primaryType="cq:Panel" title="Everyday Banking"> <items jcr:primaryType="cq:WidgetCollection"> <messageFunc1 jcr:primaryType="cq:Widget" height="90" xtype="richtext"/> </items> </dialog_tab2> </items> </tabs> </items> </jcr:root>

These 2 panels are exactly the same but the result is different:

[img]problem1.png[/img]

The first panel is correct and the second is 15px higher. Anyone have observe the same problem? In fact this is not a real problem but my final objective is to have 2 fields on the same row.

 

<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" xtype="dialog"> <items jcr:primaryType="cq:WidgetCollection"> <tabs jcr:primaryType="cq:TabPanel"> <items jcr:primaryType="cq:WidgetCollection"> <dialog_tab1 jcr:primaryType="cq:Panel" layout="column" title="Everyday Banking"> <items jcr:primaryType="cq:WidgetCollection"> <text jcr:primaryType="cq:Widget" xtype="textfield"/> <path jcr:primaryType="cq:Widget" xtype="pathfield"/> </items> </dialog_tab1> <dialog_tab2 jcr:primaryType="cq:Panel" layout="column" title="Everyday Banking"> <items jcr:primaryType="cq:WidgetCollection"> <text jcr:primaryType="cq:Widget" xtype="textfield"/> <path jcr:primaryType="cq:Widget" xtype="pathfield"/> </items> </dialog_tab2> </items> </tabs> </items> </jcr:root>

[img]problem2.png[/img]

 

The first panel works fine and the second has a serious problem of dimensions. I have tried to change the layout property to 'hbox' or 'table' but the result is the same. Anyone have a solution? Thanks

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 Sham_HC

Please try define a property hideMode with types as string and value equals to offsets at "<componentpath>/dialog/items/items/dialog_tab2".

2 replies

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

Please try define a property hideMode with types as string and value equals to offsets at "<componentpath>/dialog/items/items/dialog_tab2".

smacdonald2008
New Participant
October 16, 2015

I sent this to support to confirm if this is a known bug.