Hi Team, When do you use childwidth or width attribute in the cell? |
Hi Raymond, childWidth enables you to give a static width to the component in a cell which is independent of the the cell's width. In other words, the component width will not change even if the containing cell becomes wider. This is usually used with the image component where stretching the size of the component might not be desired even if its container cell has become wider. More commonly, the width attribute and hAlign attribute are used together. With the width attribute you can specify a width for the cell either as a % value or a static value. In that case, you can control the width of the inner component using the hAlign attribute. If hAlign is set to Full the component will be as wide as the cell. Hope this helps. Kind Regards, |
Hi Yalim, sorry but i do not understand completely. In the service request demo i see for example this: <cell width="84" halign="Center" valign="Center" childwidth="74"> You say "childWidth" is static, so in this case i expect 74 pixels fixed. However, it seems to be a maximum width, because when i decrease the window width, the cell becomes smaller and the text is wrapped into multiple lines. So what does width=84 exactly mean? And what does childWidth=74 exactly mean? Kind regards, Jan Willem Hi Jan, Can you please post your panel XML? Regards,
(22 Jan '15, 14:20)
Ibrahim Sand... ♦♦
Hi Ibrahim, i am running your service request demo without any change. So, if you wish to see it yourself, start the demo and resize your browser window to - for example - 300 pixels width. You will notice that columns become smaller than width and childwidth. I don't know if that's expected behaviour, but because of this, i do not understand the meaning of these two widths. Regards, Jan Willem
(23 Jan '15, 03:25)
Jan Willem V...
|