mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
More sensible default margins for fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22913 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9bd8ffb29c
commit
288b939274
@ -286,16 +286,21 @@ BufferView::~BufferView()
|
||||
delete d;
|
||||
}
|
||||
|
||||
// Put this user variable in lyxrc or pass it through setFullScreen()
|
||||
static int const max_row_width = 700;
|
||||
|
||||
int BufferView::rightMargin() const
|
||||
{
|
||||
return full_screen_? width_ / 4 : 10;
|
||||
if (!full_screen_ || width_ < max_row_width + 20)
|
||||
return 10;
|
||||
|
||||
return (width_ - max_row_width) / 2;
|
||||
}
|
||||
|
||||
|
||||
int BufferView::leftMargin() const
|
||||
{
|
||||
return full_screen_? width_ / 4 : 10;
|
||||
return rightMargin();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user