cristallium commented on issue #519: SDK 0.9.6 <js:DataGridPercentageView/> 
bead work only on header DataGrid, not on cells
URL: https://github.com/apache/royale-asjs/issues/519#issuecomment-544127315
 
 
   Hi,
   I dig a little more on this bug. 
   The issue is that the **DataGridPercentageView** handle only 
**InitComplete** event by modify **element** width and set it in %. So all is 
right, but after there is the **layoutNeeded** event wich is fired. And the 
issue is because that event is handle by **DataGridLayout** function 
**layout()**. That function iterate over **columns** but doesn't know if column 
width is px or % and handle like if it's px and set width like this :
   `columnList.width = columnWidth;`
   
   So it overwrite width settings and so **DataGridPercentageView** is useless.
   
   For now, as I don't know well SDK architecture , I suppose that  
**DataGridPercentageView** must override **DataGridLayout** 's **layout** 
function to handle properly column width ?
   
   @carlosrovira could you tell me your opinion ? Who know the best this part 
of SDK ? Thanks
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to