Dialog Position #6170
-
|
Hello, Is there any way I can show either a custom dialog or a modal popup at any position I want? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
|
Dialogs are positioned in a standard way but your app could add any overlay or popup and set the position of that. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, so I finally found the issue created from the discussion item #5340. It is issue #5358 and its resolution is in Commit 436a222. In any case the resolution would not really help me. What I would like to do is just override the Tapped functions of the popup. Many thanks... |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for all this noise!! What I said about the resolution for issue #5358 is wrong! The code is there. I was looking at a previous commit :-( Bob |
Beta Was this translation helpful? Give feedback.
-
|
I may be missing something - but what is wrong with |
Beta Was this translation helpful? Give feedback.
-
|
Because ShowAtPosition calls Move() and it won't move the popup if its modal: // Move the widget to a new position. A PopUp position is absolute to the top, left of its canvas.
// For PopUp this actually moves the content so checking Position() will not return the same value as is set here.
func (p *PopUp) Move(pos fyne.Position) {
if p.modal {
return
}
p.innerPos = pos
p.Refresh()
} |
Beta Was this translation helpful? Give feedback.
Yes please - easier to track progress than with a discussion