Opened 10 years ago
Closed 9 years ago
#12602 closed defect (wontfix)
width of enhancedgrid column in chrome error
Reported by: | fabioginzel | Owned by: | Evan |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Grid | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If set width of column in px the result is minus
see image
sorry about my english
Attachments (3)
Change History (14)
Changed 10 years ago by
comment:1 Changed 10 years ago by
Milestone: | tbd → 1.7 |
---|---|
Priority: | normal → high |
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
We can reopen this once got a test case for reproducing.
comment:4 Changed 9 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Set width of column and open with google chrome. See real width with dev tool.
comment:5 Changed 9 years ago by
Milestone: | 1.7 → 1.7.1 |
---|
comment:6 Changed 9 years ago by
Just had a quick try with test_enhanced_grid_cellmerge.html in 1.6 code base, didn't see the issue after changing column 'Genre' width to '200px'.
Can you post a test case to reproduce this?
Thanks!
Changed 9 years ago by
comment:7 Changed 9 years ago by
I open test_enhanced_grid_cellmerge.html and change width of genre to 100px.. but real width is 88px.
Changed 9 years ago by
comment:9 Changed 9 years ago by
Milestone: | 1.7.1 → 1.8 |
---|
comment:10 Changed 9 years ago by
Owner: | changed from evan to Evan |
---|---|
Status: | reopened → new |
comment:11 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Actually, this is a browser specific behavior - border, padding are also included in the total width in Chrome, so in that case you got
100 px(original setting) = 88px(real width) + 2 * 5px(left/right padding) + 2 * 1px(left/right border)
This is a generic across all Grid types - Grid column width is not 100% accurately same across browsers due to different browser box-model calculations(or even on %, em, px etc.) But adding this kind of normalization in Grid will affect rendering speed, so closing this as won't fix.
Hi fabioginzel,
I was not able to reproduce this(minus width) in either trunk or 1.6, can you post a test case?