forked from mbk-lab/rui_orig
Bug fixing
This commit is contained in:
parent
3b0ebb3a82
commit
ab1b406278
|
@ -15,6 +15,15 @@ div {
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p, h1, h2, h3, h4, h5, h6, blockquote, code {
|
||||||
|
-webkit-user-select: text;
|
||||||
|
-moz-user-select: text;
|
||||||
|
-ms-user-select: text;
|
||||||
|
user-select: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
div:focus {
|
div:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
2
popup.go
2
popup.go
|
@ -235,7 +235,7 @@ func (popup *popupData) init(view View, params Params) {
|
||||||
Style: "ruiPopupLayer",
|
Style: "ruiPopupLayer",
|
||||||
CellVerticalAlign: vAlign,
|
CellVerticalAlign: vAlign,
|
||||||
CellHorizontalAlign: hAlign,
|
CellHorizontalAlign: hAlign,
|
||||||
Content: popupView,
|
Content: NewColumnLayout(session, Params{Content: popupView}),
|
||||||
MaxWidth: Percent(100),
|
MaxWidth: Percent(100),
|
||||||
MaxHeight: Percent(100),
|
MaxHeight: Percent(100),
|
||||||
})
|
})
|
||||||
|
|
|
@ -70,13 +70,14 @@ func IsDisabled(view View, subviewID string) bool {
|
||||||
if subviewID != "" {
|
if subviewID != "" {
|
||||||
view = ViewByID(view, subviewID)
|
view = ViewByID(view, subviewID)
|
||||||
}
|
}
|
||||||
|
if view != nil {
|
||||||
if disabled, _ := boolProperty(view, Disabled, view.Session()); disabled {
|
if disabled, _ := boolProperty(view, Disabled, view.Session()); disabled {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if parent := view.Parent(); parent != nil {
|
if parent := view.Parent(); parent != nil {
|
||||||
return IsDisabled(parent, "")
|
return IsDisabled(parent, "")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue