Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/01/2010 18:32:17
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
Hi,
I' ve defined a calendar app, with vertical schedule components (like in PIM app). Now I want to give every day the same width, PIM has workdays 16% and weekends with 10%. I thought this could be solved by giving each comp. the width of 100%.
But now theres a space at the right side!
I added coding and a screenshot.
Coding:
Code:
<t:row id="g_53" >
<t:schedule id="g_54" background="null!" bgpaint="rectangle(0,0,100%,100%,#80808060,#80808000,horizontal)" border="#C0C0C0" height="100%" numberofblocks="12" orientation="vertical" schedulemax="24" width="60" >
<t:scheduleitem id="g_55" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="0" schedulewidth="1" text="06:00" />
<t:scheduleitem id="g_56" scheduleleft="1" schedulewidth="1" />
<t:scheduleitem id="g_57" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="2" schedulewidth="1" text="07:00" />
<t:scheduleitem id="g_58" scheduleleft="3" schedulewidth="1" />
<t:scheduleitem id="g_59" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="4" schedulewidth="1" text="08:00" />
<t:scheduleitem id="g_60" scheduleleft="5" schedulewidth="1" />
<t:scheduleitem id="g_61" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="6" schedulewidth="1" text="09:00" />
<t:scheduleitem id="g_62" scheduleleft="7" schedulewidth="1" />
<t:scheduleitem id="g_63" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="8" schedulewidth="1" text="10:00" />
<t:scheduleitem id="g_64" scheduleleft="9" schedulewidth="1" />
<t:scheduleitem id="g_65" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="10" schedulewidth="1" text="11:00" />
<t:scheduleitem id="g_66" scheduleleft="11" schedulewidth="1" />
<t:scheduleitem id="g_67" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="12" schedulewidth="1" text="12:00" />
<t:scheduleitem id="g_68" scheduleleft="13" schedulewidth="1" />
<t:scheduleitem id="g_69" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="14" schedulewidth="1" text="13:00" />
<t:scheduleitem id="g_70" scheduleleft="15" schedulewidth="1" />
<t:scheduleitem id="g_71" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="16" schedulewidth="1" text="14:00" />
<t:scheduleitem id="g_72" scheduleleft="17" schedulewidth="1" />
<t:scheduleitem id="g_73" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="18" schedulewidth="1" text="15:00" />
<t:scheduleitem id="g_74" scheduleleft="19" schedulewidth="1" />
<t:scheduleitem id="g_75" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="20" schedulewidth="1" text="16:00" />
<t:scheduleitem id="g_76" scheduleleft="21" schedulewidth="1" />
<t:scheduleitem id="g_77" align="right!" font="size:12;weight:bold" resizingenabled="false" scheduleleft="22" schedulewidth="1" text="17:00" />
<t:scheduleitem id="g_78" scheduleleft="23" schedulewidth="1" />
</t:schedule>
<t:schedule id="g_79" attributemacro="scheduleMacro(0)" width="100%" />
<t:schedule id="g_80" attributemacro="scheduleMacro(1)" width="100%" />
<t:schedule id="g_81" attributemacro="scheduleMacro(2)" width="100%" />
<t:schedule id="g_82" attributemacro="scheduleMacro(3)" width="100%" />
<t:schedule id="g_83" attributemacro="scheduleMacro(4)" width="100%" />
<t:schedule id="g_84" attributemacro="scheduleMacro(5)" width="100%" />
<t:schedule id="g_85" attributemacro="scheduleMacro(6)" width="100%" />
</t:row>
Markus
Filename |
space.PNG |
Download
|
Description |
|
Filesize |
16 Kbytes
|
Downloaded: |
397 time(s) |
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/01/2010 19:03:26
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
Hi,
just looked into the rounding difference equalizer algorithm...: this works perfectly if all percentage size at the end make 100%...
Please use
14
14
14
14
14
15
15
as width definitions... ;-)
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/01/2010 19:16:21
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, thanx, I think I misunderstood the layout basics ;-)
sorry, regards
Markus
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/01/2010 19:39:04
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
...I also had to check the code... (but do not tell anybody!).
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 25/01/2010 20:14:13
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, hmm is it standard that the last column is bigger? It seems that there's space reserved for the scrollbar?
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/01/2010 13:37:12
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
...no, the last columns receives the rounding pixels... (in the grid you are right that there are also some scrollbar pixels, but this is (not yet) a grid scenario...)
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/01/2010 13:39:48
|
mreich
Power User
![[Avatar]](/forum/images/avatar/093f65e080a295f8076b1c5722a46aa2.jpg)
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, I understand so it's in general not good to mix static pixel widths with dynamic % widths
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/01/2010 13:50:24
|
tdrasch
Power User
![[Avatar]](/forum/images/avatar/7f39f8317fbdb1988ef4c628eba02591.png)
Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline
|
Unfortunately this is an experience we had made too
regards
|
--------------------------------
Good karma - for the moment...
why is the word abbreviation so long? |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 28/01/2010 12:55:29
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5542
Offline
|
Hi,
we checkd this part of the layouting... and updated it: now rounding differences are distributed through all components within one row...
Thanks for your input!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
|