imagePage: Correctly align right-click menu
Before it was incorrectly centered
This commit is contained in:
parent
5c5aea286f
commit
0ddecefe01
1 changed files with 5 additions and 0 deletions
|
|
@ -190,6 +190,11 @@ impl LpImagePage {
|
||||||
|
|
||||||
let rect = gdk::Rectangle::new(x as i32, y as i32, 0, 0);
|
let rect = gdk::Rectangle::new(x as i32, y as i32, 0, 0);
|
||||||
|
|
||||||
|
if self.direction() == gtk::TextDirection::Rtl {
|
||||||
|
imp.popover.set_halign(gtk::Align::End);
|
||||||
|
} else {
|
||||||
|
imp.popover.set_halign(gtk::Align::Start);
|
||||||
|
}
|
||||||
imp.popover.set_pointing_to(Some(&rect));
|
imp.popover.set_pointing_to(Some(&rect));
|
||||||
imp.popover.popup();
|
imp.popover.popup();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue