forked from mbk-lab/rui_orig
2
0
Fork 0

Bug fixing

This commit is contained in:
Alexei Anoshenko 2022-07-01 18:01:25 +03:00
parent 3b0ebb3a82
commit ab1b406278
3 changed files with 17 additions and 7 deletions

View File

@ -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;

View File

@ -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),
}) })

View File

@ -70,12 +70,13 @@ 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
} }