Fix edge case where popup is offscreen
This commit is contained in:
parent
23193a145c
commit
145a215305
@ -282,19 +282,6 @@ class BrowsePage(rio.Component):
|
||||
|
||||
|
||||
return rio.Column(
|
||||
rio.TextInput(
|
||||
text=self.bind().searchtext,
|
||||
on_change=self._search_trigger,
|
||||
label="Search"
|
||||
),
|
||||
|
||||
rio.Text(
|
||||
text=self.bind().loading_text,
|
||||
style='heading3',
|
||||
align_x = 0.5,
|
||||
align_y = 0,
|
||||
),
|
||||
|
||||
rio.Popup(
|
||||
anchor=rio.Text(
|
||||
text="",
|
||||
@ -306,7 +293,7 @@ class BrowsePage(rio.Component):
|
||||
is_open=self.info_show,
|
||||
min_width=40,
|
||||
#position='fullscreen',
|
||||
align_y = 1,
|
||||
#align_y = 1,
|
||||
color=rio.Color.TRANSPARENT,
|
||||
content=rio.Card(
|
||||
rio.Column(
|
||||
@ -341,7 +328,7 @@ class BrowsePage(rio.Component):
|
||||
is_open=self.edit_show,
|
||||
min_width=40,
|
||||
#position='fullscreen',
|
||||
align_y = 1,
|
||||
#align_y = 1,
|
||||
color=rio.Color.TRANSPARENT,
|
||||
content=rio.Card(
|
||||
rio.Column(
|
||||
@ -405,6 +392,20 @@ class BrowsePage(rio.Component):
|
||||
align_y=0.5,
|
||||
)
|
||||
),
|
||||
rio.TextInput(
|
||||
text=self.bind().searchtext,
|
||||
on_change=self._search_trigger,
|
||||
label="Search"
|
||||
),
|
||||
|
||||
rio.Text(
|
||||
text=self.bind().loading_text,
|
||||
style='heading3',
|
||||
align_x = 0.5,
|
||||
align_y = 0,
|
||||
),
|
||||
|
||||
|
||||
searchview,
|
||||
rio.Popup(
|
||||
anchor=rio.Text(
|
||||
|
Loading…
x
Reference in New Issue
Block a user