Bug 47718 - Add indicator of text outside page boundary eg. due to negative indentation.
Summary: Add indicator of text outside page boundary eg. due to negative indentation.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.1 release
Hardware: All All
: high enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page
  Show dependency treegraph
 
Reported: 2012-03-22 06:56 UTC by mathias.supp
Modified: 2021-05-01 08:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Basic macro, which solves problem with "Decrease Indent" (22.74 KB, application/vnd.oasis.opendocument.text)
2012-11-26 12:50 UTC, sasha.libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathias.supp 2012-03-22 06:56:10 UTC
Repro:
Enter some text (at least one word) into the first line of an empty
writer-document.
Press the toolbar-button for decrement indentation.
After 4 clicks the text disappeared on the left border of the document.

There is a similar (closed) issue coming from OOo:
(https://issues.apache.org/ooo/show_bug.cgi?id=69537).

This behaviour is reproducable on all OOo/LibO-versions I had (OOo3.2, 3.3,
LibO3.3, 3.4, 3.5)

Btw.: If you increase the indentation instead it stops on the right border of
the paragraph area.
Comment 1 mathias.supp 2012-03-22 07:25:54 UTC
Exepectation:
Negativ indentation stops, if the first character of paragraph would leave the page (not paragraph area).
Comment 2 sasha.libreoffice 2012-06-15 02:56:12 UTC
Thanks for bugreport
Other Word processors also allow to place something outside of page. It is not bad, even handy.
Problem in another: why objects outside of page are invisible? They should be visible (more handy variant). Or should be some marks that indicates that outside of page something exist.
Comment 3 leighman 2012-10-03 10:08:19 UTC
This seems to be consistent with other word processors.
It would be good to have some indication that content is off the page, however.
Comment 4 sasha.libreoffice 2012-11-26 12:50:20 UTC
Created attachment 70588 [details]
Basic macro, which solves problem with "Decrease Indent"

I have written Basic macro which performs decreasing indent of paragraph and watches for paragraph not appear outside of page. Paragraph stops moving on left side of page.
By default it moves on 25mm to left. This value can be changed inside of macro.
Comment 5 Buovjaga 2021-04-19 15:02:05 UTC
(In reply to sasha.libreoffice from comment #2)
> Problem in another: why objects outside of page are invisible? They should
> be visible (more handy variant). Or should be some marks that indicates that
> outside of page something exist.

Design team: I think this needs some defining at least
Comment 6 Heiko Tietze 2021-04-20 08:03:44 UTC
Sounds like a safety issue. Enter some sensitive text, indent to -3cm on A4, add spaces until the caret shows at position zero.

One idea is to hi-jack the indicator from tracked changes, a vertical grey line; perhaps using a different color. But the more consistent solution is to add a small triangle like for cells in Calc when the content exceeds its width.

Alternatively we could expand the document canvas on this particular line; or in other words draw outside the document canvas with a background (either the document canvas or what is defined on the characters).
Comment 7 Eyal Rozenberg 2021-04-28 10:37:35 UTC
There seem to be two issues here:

1. Pressing Decrease-Indent moves text off the edge of the page.
2. When there is text which exceeds the edge of the page (or perhaps the window viewport?), there should be some warning/indication of this fact.

I cannot reproduce the first issue (!) with LO 7.1.2.2. Decrease-Indent does nothing for me for text that's at indentation 0 (both in an new empty writer document and with the attachment). However, with the macro in the text document, the text can go as far as the page boundary.

Is it just me, or has behavior changed over the past decade?
Comment 8 Heiko Tietze 2021-05-01 08:04:23 UTC
We discussed the topic in the design meeting. 

Frames (without Autosize) show a red "text overflow" triangle and we should do the same on indentation beyond the canvas. This triangle shouldn't cover text and ideally drawn outside the canvas.

Setting importance to high due to the privacy/security aspect.