Bug 118028 - Web view margins
Summary: Web view margins
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 10:43 UTC by matt.r.palermo
Modified: 2018-06-22 16:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matt.r.palermo 2018-06-06 10:43:09 UTC
Description:
TL;DR: In web layout view, `body {max-width: 80ch}`.

Web view provides a writing and reading environment free from the distractions of pagination but the text content can become too wide for comfortable use when the window is maximized (or fullscreen is enabled) on a large screen. One possible solution is to never maximize the window and always adjust the window size to a comfortable reading width. This might work for some, but it makes it difficult to have a distraction free writing experience.

It should be possible to place a limit to the width of the content in the web view. If the window is wider than the max-width limit then left and right margins would be used to center the content with a width of max-width. This can essentially be written as the CSS rule `body {max-width: 80ch}` where 80 would be a personal preference.

Actual Results:  
 

Expected Results:
 


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Comment 1 matt.r.palermo 2018-06-06 10:47:38 UTC
A question about this was posted to Ask LibreOffice 2 years ago: https://ask.libreoffice.org/en/question/84748/web-view-margins/

I have also posted a question about this (for any word processor) on Superuser: https://superuser.com/questions/1329035/web-layout-with-margins-in-microsoft-word-or-libreoffice-writer
Comment 2 Jean-Baptiste Faure 2018-06-10 12:32:25 UTC
It seems to me that the function "Hide Withespace" in normal view does what you want. This function is available from View menu.

In web view you can use the zoom to adjust the number of characters displayed in a row. I am not sure whether your request is compatible with the zoom function.

Does that help?

Status set to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 3 matt.r.palermo 2018-06-12 07:48:58 UTC
(In reply to Jean-Baptiste Faure from comment #2)
> It seems to me that the function "Hide Withespace" in normal view does what
> you want. This function is available from View menu.
> 
> In web view you can use the zoom to adjust the number of characters
> displayed in a row. I am not sure whether your request is compatible with
> the zoom function.
> 
> Does that help?
> 
> Status set to NEEDINFO, please set it back to UNCONFIRMED once requested
> informations are provided.
> 
> Best regards. JBF

Thankyou for your reply JBF,

I just tried the "Hide Whitespace" feature and it seems that this does what I want. I assumed that paginations would still be a problem with this mode but it seems that the implementation is more complex then I assumed. I don't understand why lines are displayed to indicate page breaks while the page break lines move to avoid unwanted pagination effects. So a follow up question I have is: Can the page break lines be hidden?

Thankyou for helping me with this,
MRP.
Comment 4 Buovjaga 2018-06-22 16:33:40 UTC
I am unable to answer the question, but let's close as you are happy with the solution.