Hi,
Same HGroup width and height issue when using in GridCell
Example:
https://paste.apache.org/5vs1a

Regards
Alina Kazi

On Mon, Aug 10, 2020 at 6:48 PM Alina Kazi <[email protected]> wrote:

> this issue is resolved.
> In my case charTopesPerGen HGroup is not initialized where I am trying to
> get its width .
>
>
>
> On Mon, Aug 10, 2020 at 1:24 PM Alina Kazi <[email protected]> wrote:
>
>> Hi Carlos,
>> Yes I am using HGroup inside SectionContent
>>  <j:SectionContent name="tab9" style="padding-top: 0px;" height="100%" >
>>                     <j:HGroup localId="charTopesPerGen" width="100%"
>> height="100%" itemsVerticalAlign="itemsTop"/>
>>                 </j:SectionContent>
>>
>> still it shows both 0.
>>
>> [image: image.png]
>>
>> Alina Kazi
>>
>> On Sun, Aug 9, 2020 at 7:04 PM Carlos Rovira <[email protected]>
>> wrote:
>>
>>> Hi Alina,
>>>
>>> checking this issue I found a huge problem that I just solve in my
>>> latest commit with Jewel SectionContent. I guess your HGroup was inside a
>>> SectionContent right?
>>>
>>> Consider this code (from TDJ but adapted a bit to trace things):
>>>
>>> <j:HGroup localId="hg" gap="3" className="wrapper" width="50%"
>>> initComplete="trace(hg.width, hg.percentWidth, hg.explicitWidth)">
>>> <j:Button text="X" emphasis="primary"/>
>>> <j:Button text="Y" emphasis="secondary"/>
>>> <j:Button text="Z" emphasis="emphasized"/>
>>> <j:Button text="0" />
>>> </j:HGroup>
>>>
>>> until now, trying in TDJ, the trace at initComplete reports: 0 50 NaN,
>>> while now reports 184 50 NaN, what is the right one.
>>>
>>> Before trying the HGroup outside a SectionContent was working good as I
>>> checked in a simple royale app that was declaring the HGroup just right
>>> after the View.
>>>
>>> So the problem was that SectionContent starts with "display: none" when
>>> the content inside is created, and that was reporting width or height : 0px
>>>
>>> Let me know if the last commit solves your problem.
>>>
>>> Thanks
>>>
>>>
>>>
>>>
>>> El sáb., 8 ago. 2020 a las 23:40, Alina Kazi (<[email protected]>)
>>> escribió:
>>>
>>>> Hi,
>>>>
>>>> I am using jewel HGroup its width and height is set to 100%. In
>>>> actionscript code i want to see its real height and width according to the
>>>> current screen resolution.
>>>> localID of HGroup is hg1.
>>>>
>>>> In actionscript code when i write hg1.height and hg1.width both are 0.
>>>> How can i get actual width and height in this case?
>>>>
>>>> Alina
>>>>
>>>>
>>>>
>>>
>>> --
>>> Carlos Rovira
>>> http://about.me/carlosrovira
>>>
>>>

Reply via email to