Bug 165848 - Add option to delete header and footer without changing margins
Summary: Add option to delete header and footer without changing margins
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2025-03-21 11:49 UTC by Piotr Osada
Modified: 2025-03-26 23:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example document (12.16 KB, application/vnd.oasis.opendocument.text)
2025-03-21 11:51 UTC, Piotr Osada
Details
'Delete Footer...' enlarges page margins MP4 (1.15 MB, video/mp4)
2025-03-21 12:01 UTC, Piotr Osada
Details
3 different UI ways to delete header/footer that causes margin position shift (2.87 MB, video/mp4)
2025-03-26 23:25 UTC, Piotr Osada
Details
Header options window (25.98 KB, image/png)
2025-03-26 23:59 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2025-03-21 11:49:23 UTC
Steps:

1) Insert -> Page Number
2) Bottom of page (Footer)
3) [enable] Fit into existing margins (so that it don't change margins)
4) Click on the footer
5) Click to open 'Footer (Default Page Style)' context menu
6) Delete footer...


Actual result:
Margin is enlarged by the size of deleted footer.


Expected result:
Option to delete header and footer without changing page margins.


Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
CPU threads: 8; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 1 Piotr Osada 2025-03-21 11:51:40 UTC
Created attachment 199937 [details]
Example document
Comment 2 Piotr Osada 2025-03-21 12:01:32 UTC
Created attachment 199938 [details]
'Delete Footer...' enlarges page margins MP4

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
CPU threads: 8; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 3 mikhail.machine 2025-03-22 10:44:15 UTC
Hello,

At present requested result could be reached by "Adjust Header/Footer Size to Zero (instead of deleting them)". A bit cumbersome.

I can confirm that the bag is present in master.

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded

and

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a8ec21adf255b70bb6eeb0a1717190df303d8b26
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded
Comment 4 Piotr Osada 2025-03-26 16:53:17 UTC
(In reply to mikhail.machine from comment #3)
> ...requested result could be reached by "Adjust Header/Footer Size
> to Zero (instead of deleting them)". A bit cumbersome.





GUI steps [1]



I. METHOD:
Menubar:
1) Styles ⇾ Manage Styles F11 // or Alt+F2 (Sidebar)

In sidebar:
2) Page Styles (fourth button)

In sidebar Page Styles list:
3)  + Default Page Style
4) Right click
5) Edit Style...

In Page Style window:
6) Footer
7) "Footer on" [disable (uncheck)]



II METHOD:
Page:
1) Click on the footer
2) Click on "Footer (Default Page Style)" blue button appeared along with a blue dashed cut-off-line above the footer area to open the context menu
3) Format Footer...

In Page Style window:
4) Footer
5) "Footer on" [disable (uncheck)]





[1] According to 2025-03-07 LO master:

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 894563ee0e4032019623a97c313af3d833863b1f
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded

https://git.libreoffice.org/core/+log/894563ee0e4032019623a97c313af3d833863b1f
Comment 5 Piotr Osada 2025-03-26 23:01:36 UTC
Comment #4 solutions also moves page margins to the top (in case of header) or to the bottom (footer).
Comment 6 Piotr Osada 2025-03-26 23:25:24 UTC
Created attachment 200042 [details]
3 different UI ways to delete header/footer that causes margin position shift

(In reply to Piotr Osada from comment #5)

Like this.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 894563ee0e4032019623a97c313af3d833863b1f
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 7 Piotr Osada 2025-03-26 23:59:17 UTC
Created attachment 200043 [details]
Header options window

(In reply to mikhail.machine from comment #3)
> At present requested result could be reached by "Adjust Header/Footer Size
> to Zero (instead of deleting them)".

What have you meant?

By these dimensioning options (Page Style ⇾ Header) result will not be the same.