()
| 27 | var ScrollBarWidthDefault = float32(10) |
| 28 | |
| 29 | func (s *Style) LayoutDefaults() { |
| 30 | s.Justify.Defaults() |
| 31 | s.Align.Defaults() |
| 32 | s.Gap.Set(units.Em(0.5)) |
| 33 | s.ScrollBarWidth.Dp(ScrollBarWidthDefault) |
| 34 | } |
| 35 | |
| 36 | // ToDots runs ToDots on unit values, to compile down to raw pixels |
| 37 | func (s *Style) LayoutToDots(uc *units.Context) { |