I lied
This commit is contained in:
parent
995e6fd624
commit
80f60b42de
@ -523,11 +523,17 @@ func (this *box) recursiveReApply () {
|
|||||||
// style
|
// style
|
||||||
hierarchyStyleNonce := this.getStyleNonce()
|
hierarchyStyleNonce := this.getStyleNonce()
|
||||||
if this.lastStyleNonce != hierarchyStyleNonce {
|
if this.lastStyleNonce != hierarchyStyleNonce {
|
||||||
|
// remove old style
|
||||||
this.lastStyleNonce = hierarchyStyleNonce
|
this.lastStyleNonce = hierarchyStyleNonce
|
||||||
if this.styleCookie != nil {
|
if this.styleCookie != nil {
|
||||||
this.styleCookie.Close()
|
this.styleCookie.Close()
|
||||||
|
this.styleCookie = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// apply new one
|
||||||
|
if style := this.getStyle(); style != nil {
|
||||||
|
this.styleCookie = style.Apply(this.outer)
|
||||||
}
|
}
|
||||||
this.styleCookie = this.getStyle().Apply(this.outer)
|
|
||||||
this.on.styleChange.Broadcast()
|
this.on.styleChange.Broadcast()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user