mirror of https://github.com/anoshenko/rui.git
Update popup.go
This commit is contained in:
parent
dc255ec9fb
commit
9a6bb43800
5
popup.go
5
popup.go
|
|
@ -981,6 +981,10 @@ func (popup *popupData) showAnimation() {
|
||||||
if opacity != 1 || transform != nil {
|
if opacity != 1 || transform != nil {
|
||||||
htmlID := popup.popupView.htmlID()
|
htmlID := popup.popupView.htmlID()
|
||||||
|
|
||||||
|
session := popup.Session()
|
||||||
|
session.updateProperty(htmlID, "ontransitionend", "scanElementsSize()")
|
||||||
|
session.updateProperty(htmlID, "ontransitioncancel", "scanElementsSize()")
|
||||||
|
|
||||||
animation := popup.animationProperty()
|
animation := popup.animationProperty()
|
||||||
if opacity != 1 {
|
if opacity != 1 {
|
||||||
popup.popupView.SetTransition(Opacity, animation)
|
popup.popupView.SetTransition(Opacity, animation)
|
||||||
|
|
@ -989,7 +993,6 @@ func (popup *popupData) showAnimation() {
|
||||||
popup.popupView.SetTransition(Transform, animation)
|
popup.popupView.SetTransition(Transform, animation)
|
||||||
}
|
}
|
||||||
|
|
||||||
session := popup.Session()
|
|
||||||
if opacity != 1 {
|
if opacity != 1 {
|
||||||
session.updateCSSProperty(htmlID, string(Opacity), "1")
|
session.updateCSSProperty(htmlID, string(Opacity), "1")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue