Platform information:
- Hardware: _amd64
- OS: Windows 10/10.0
- Java Runtime Environment: 11.0.9.1 (Zulu11.43+55-CA)
- openHAB version: openHAB 3.1.0.M5
Is it possible to make a popup match the defined f7-page size which is being called?
I use the following to open a popup from my Overview page:
component: oh-cell
config:
title: Blank Popup
action: popup
actionModal: widget:Popup_Base
actionModalConfig: null
slots: null
I have not been able to get the popup to match the f7-page definition. The widget I am calling for test purposes is (removed the “extra” buttons etc to make readability better":
uid: Popup_Base
tags: []
props:
parameterGroups: []
timestamp: Jun 23, 2021, 11:35:29 AM
component: f7-page
config:
style:
position: absolute
left: 0px
top: 0px
background-color: rgb(220,220,220)
--f7-card-margin-horizontal: 0px
border-radius: 20px
width: 358px
height: 410px
The result is (on a PC Browser (Chrome):
The issues I have:
-
The popup size is larger (in this case) than the defined page - leaving all the surrounding space.
-
The NAV bar overlaps the actual page - have tried the options to hide the NAV bar - but don’t get any workable results:
- component: f7-page
config:
style:
z-index: 0
--f7-navbar-height: 0px
--f7-navbar-font-size: 0px
--f7-navbar-bg-color: white
--f7-navbar-border-color: white
--f7-navbar-link-color: black
--f7-navbar-text-color: black
The above style options produce:
uid: Popup_Base
tags: []
props:
parameterGroups: []
timestamp: Jun 23, 2021, 11:52:49 AM
component: f7-page
config:
style:
z-index: 0
--f7-navbar-height: 0px
--f7-navbar-font-size: 0px
--f7-navbar-bg-color: white
--f7-navbar-border-color: white
--f7-navbar-link-color: black
--f7-navbar-text-color: black
position: absolute
left: 0px
top: 0px
background-color: rgb(220,220,220)
--f7-card-margin-horizontal: 0px
border-radius: 20px
width: 358px
height: 410px
And adjusting the position:
position: absolute
left: 0px
top: 50px
Can’t seem to find a “prefect” solution.
Ideally I would like:
Any suggestions on what else to try - or if this is possible?
Thanks for your feedback.
Mark