Created attachment 154185 [details] Screencast When a code sample in help is clicked, it is highlighted with a color border to show that something happens; and that's nice. However, the border has a width that causes the enclosed text to change the position momentarily. It would be nice if the text would *always* have the same width of the border, but only change its color, which would avoid the jumping down than up. On the attached screencast, the appearing green border moves text down and right.
Reproduced. Sample: https://help.libreoffice.org/6.3/ca/text/sbasic/python/python_shell.html?DbPAR=BASIC#N0117
Olivier: this seems to be fixed by adding to the CSS .pycode, .bascode rule: border: solid 5px transparent; and then from the help.js function you can remove instances of var saveBorder = item.style.border; item.style.border = "solid 5px"; item.style.border = saveBorder;
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/35281f4c9178f373609a61f0a44e268b179c5749 tdf#127566: don't change divcopyable border width in onclick handler
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-6-4": https://git.libreoffice.org/help/commit/f1cb84713664fefd3892671808efe31234e11eec tdf#127566: don't change divcopyable border width in onclick handler