Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Lock Control Panel Position on Tablet
Team,
I've got a bunch of Control Panels that I view on Tablets all working fine and there is a slight annoyance that occurs when I inadvertently swipe the tablet screen and the whole panel moves about 1/4"-1/2" vertically and it also can also move horizontally about the same amount. See attached photos. Is there a way to lock the panel so that this doesn't happen or what can I do to prevent this?
--
Many thanks in advance! Vinny DeRobertis ~ Apex, NC New York & Hudson Valley RR Windows 7 Pro / Java 11 / JMRI v5.10 Command Station: Digikeijs DR5000. Booster: Digikeijs DR5033 (4) Samsung A7 10.4" Tablets
Fully Kiosk/Engine Driver v2.37.187
DCC/DMX Gateway: Pricom LLS. LocoNet Input Modules: Digikeijs DR4088LN DCC Output Modules: Digikeijs DR4018 / Yamorc YD8116. Sensors: Model Train Technology: DETECTOR-HO. Turnout Motors: MTB MP1 |
Vinny, it appears that the web page is larger than the tablet viewport, so scrolling is the expected behavior. Try it with a smaller panel and see if that solves the issue.
If it does, you may be able to simply remove some of the web page details (like the footer) and eliminate the scrolling without having to modify your panel.
--SteveT |
Vinny,
You can remove the footer using css.
1) Find the file JMRI/web/css in your JMRI installation.
2) Follow the directions in that file to copy it into your User Files location.
3) Paste the following CSS at the bottom of that file.
?
/* hide the footer, on panel pages only */
body#panel footer { ? ? display: none; } /* undo spacing left for footer, on panel pages only */ body#panel div#wrap { ? ? margin-bottom: 0; ? padding-bottom: 0; } ?
4) Restart JMRI and clear your browser cache.
--SteveT
?
|
Steve, attachment1 shows my user files location and the location of my new user.css file. Attachment2 shows the contents of the new user.css file.
The footer "powered by jmri" still shows on my panels after clearing the tablet cache. I am using the fully kiosk browser. My indentation is 2 spaces. I am missing something. |
Make your panels 1/4" smaller in each axis. On Sat, Mar 29, 2025, 12:22?AM Vinny DeRobertis via <vinny.derobertis=[email protected]> wrote:
|
to navigate to use esc to dismiss