SID-02166: DASHBOARD does weird stuff when boxes are resized
| Status: |
Answered |
TWiki version: |
6.0.2 |
Perl version: |
5.10.1 |
| Category: |
TWikiDashboardAddOn |
Server OS: |
linux 2.6.32-573.18.1.el6.x86_64 |
Last update: |
9 years ago |
Hi Again,
When I use the DASHBOARD addon, and I resize (height) the first box to accommodate text that otherwise would create a scrollbar, I also resize the other boxes in the first row, to the same height. But then the other two boxes on the first row end up shorter and in different positions, as well. I have attached a screen capture to show the effect.
I know that there is some simple way to get around this, from working in TWiki for another company (but I can't get to their TWiki now), but I can't recall what it is.
Assistance would be much appreciated.
Thanks,
Andy
--
Andrew Schwartz - 2016-03-01
Discussion and Answer
Empty lines likely cause an issue with top alignment. Make sure there are no empty lines between
%DASHBOARD{ section="box_end" }% and
%DASHBOARD{ section="box_start" }%. (Yes that is between box_end and box_start.) Empty lines introduce
p tags, which interfere with the floats.
The box height should be no issue unless you customize the margin or padding.
--
Peter Thoeny - 2016-03-02
I removed all spaces as you suggest, the results are below, in the second image. All the box heights are the same.
I have found that adding 20px to boxes 2 and 3 "fixes" the problem.
--
Andrew Schwartz - 2016-03-02
That is likely because some of the boxes have custom margin or padding.
Lets test this here:
--
Peter Thoeny - 2016-03-03
OK, I surrender. It works here. I never changed anything but the height param (and I did add some line breaks which I later removed), but it's not working the same way on my site.
Thanks for your time an efforts, and I apologize for wasting your time.
--
Andrew Schwartz - 2016-03-03
I mentioned it a 3rd time: That is likely because some of the boxes have custom margin or padding. It looks like use two boxes from TWiki one one of your own.
--
Peter Thoeny - 2016-03-03
No problem, and thanks again.
--
Andrew Schwartz - 2016-03-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.