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;
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 {
outline: none;

View File

@ -235,7 +235,7 @@ func (popup *popupData) init(view View, params Params) {
Style: "ruiPopupLayer",
CellVerticalAlign: vAlign,
CellHorizontalAlign: hAlign,
Content: popupView,
Content: NewColumnLayout(session, Params{Content: popupView}),
MaxWidth: Percent(100),
MaxHeight: Percent(100),
})

View File

@ -70,13 +70,14 @@ func IsDisabled(view View, subviewID string) bool {
if subviewID != "" {
view = ViewByID(view, subviewID)
}
if view != nil {
if disabled, _ := boolProperty(view, Disabled, view.Session()); disabled {
return true
}
if parent := view.Parent(); parent != nil {
return IsDisabled(parent, "")
}
}
return false
}