mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-10 10:43:41 -04:00
implement excluded locations menu
This commit is contained in:
@@ -15,7 +15,7 @@ Rml::Element* createRoot(Rml::Element* parent) {
|
||||
|
||||
} // namespace
|
||||
|
||||
Pane::Pane(Rml::Element* parent, Type type) : FluentComponent(createRoot(parent)), mType(type) {
|
||||
Pane::Pane(Rml::Element* parent, Type type, bool bottomSpacer) : FluentComponent(createRoot(parent)), mType(type), mBottomSpacer(bottomSpacer) {
|
||||
listen(Rml::EventId::Keydown, [this](Rml::Event& event) {
|
||||
const auto cmd = map_nav_event(event);
|
||||
|
||||
@@ -192,7 +192,9 @@ void Pane::finalize() {
|
||||
// padding-bottom or margin-bottom on a scrollable flex container, so
|
||||
// we need to create a fake spacer with an actual layout height to get
|
||||
// padding at the bottom of a scrollable container.
|
||||
append(mRoot, "spacer");
|
||||
if (mBottomSpacer) {
|
||||
append(mRoot, "spacer");
|
||||
}
|
||||
}
|
||||
|
||||
void Pane::clear() {
|
||||
|
||||
Reference in New Issue
Block a user