partially fix menu fade in
This commit is contained in:
parent
3b962c5b7c
commit
e13a46ec6b
|
@ -33,7 +33,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="window">
|
<body class="window">
|
||||||
<!-- <handle move_target="#document"> -->
|
<!-- <handle move_target="#document"> -->
|
||||||
<div id="window" style="display:flex; flex-flow: column; background-color:rgba(0,0,0,0)" onkeydown="config_keydown">
|
<div id="window" class="rmlui-window rmlui-window--hidden" style="display:flex; flex-flow: column; background-color:rgba(0,0,0,0)" onkeydown="config_keydown">
|
||||||
<div class="centered-page" onclick="close_config_menu_backdrop">
|
<div class="centered-page" onclick="close_config_menu_backdrop">
|
||||||
<div class="centered-page__modal">
|
<div class="centered-page__modal">
|
||||||
<tabset class="tabs" id="config_tabset">
|
<tabset class="tabs" id="config_tabset">
|
||||||
|
|
|
@ -797,9 +797,12 @@ struct UIContext {
|
||||||
current_document = find_it->second;
|
current_document = find_it->second;
|
||||||
Rml::Element* window_el = current_document->GetElementById("window");
|
Rml::Element* window_el = current_document->GetElementById("window");
|
||||||
if (window_el != nullptr) {
|
if (window_el != nullptr) {
|
||||||
window_el->SetClassNames("rmlui-window");
|
window_el->SetClassNames("rmlui-window rmlui-window--hidden");
|
||||||
}
|
}
|
||||||
current_document->Show();
|
current_document->Show();
|
||||||
|
if (window_el != nullptr) {
|
||||||
|
window_el->SetClassNames("rmlui-window");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
current_document = nullptr;
|
current_document = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue