-
Bug
-
Resolution: Fixed
-
Normal
-
9.6.2
-
None
-
Security Level: Jimmy
-
None
Steps to Reproduce
inspect a groupbox' position
Current Result
margin-right and margin-bottom overflow the parent element's boundary
Expected Result
the margin doesn't overflow the parent's boundary
Debug Information
- ZK renders "height:100%; width: 100%" on a groupbox
- consider another similar case
<style> .z-groupbox { margin: 10px; display: inline; } .z-groupbox-content { background: white; } </style> <div vflex="1"> <groupbox hflex="1" vflex="1"></groupbox> <groupbox hflex="1" vflex="1"></groupbox> </div>
ZK renders height: calc(100% - 20px); on a groupbox which means it considers the margin.
Workaround
- width: calc(100% - 20px)!important; 15330-fix2.zul
- replace margin with the parent's padding 15330-fix3.zul
- relates to
-
ZK-5225 a groupbox width changes after setting its title
- Open