View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035402 | mantisbt | html | public | 2025-02-19 10:23 | 2025-03-09 01:44 |
Reporter | raspopov | Assigned To | community | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Microsoft | OS | Windows Server | OS Version | 2022 |
Product Version | 2.27.0 | ||||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035402: Footer has the wrong size | ||||
Description | In the new MantisBT interface, the footer is at the bottom of the page with absolute positioning so that it “sticks” to the bottom of the page, while the rest of the page has relative positioning. By default, these elements can overlap, and to avoid this, the footer has been hard-coded to have a top margin of 75 px. But this value must correspond to the height of the footer, otherwise when scaling the page, the footer elements may line up on top of each other and the size will increase. And this leads to exceeding the reserved margin and overlap with the page content. | ||||
Steps To Reproduce | Choose the size of any small smartphone and expand/collapse widgets watching the distance to the footer change. | ||||
Additional Information | The solution to the problem is pretty simple, we'll have to honestly calculate the footer size and dynamically change its margin. By adding the following code to the ace.js file:
Perhaps this will fix issue 0022250 as well, and help in the implementation of 0022098. | ||||
Tags | No tags attached. | ||||
After reading several books on jQuery and CSS this is the best I could write:
This code is quite optimal and reliable. |
|
MantisBT: master 2ebef4ea 2025-03-05 12:56 Details Diff |
Restore included pages functionality - Restored working of top_include_page and bottom_include_page options. - Restored generation of EVENT_LAYOUT_PAGE_HEADER event. - Added dynamic footer resizing. The top_include_page file is included within the navbar element, which is fixed at the top of the page; the bottom_include_page file is included within an existing footer or as a footer itself (on login pages), which is also fixed at the bottom of the page. Because of this, the include template must contain, for example, a div element with a solid background. Fixes 0035402, 0022250, 0022098, 0021113 PR https://github.com/mantisbt/mantisbt/pull/2102 |
Affected Issues 0021113, 0022098, 0022250, 0035402 |
|
mod - config_defaults_inc.php | Diff File | ||
mod - core/html_api.php | Diff File | ||
mod - core/layout_api.php | Diff File | ||
mod - css/ace-mantis.css | Diff File | ||
mod - docbook/Admin_Guide/en-US/config/html.xml | Diff File | ||
mod - js/common.js | Diff File |