Hi Volker,

one more info: if you set forceVerticalScrollbar="true" for the sheets only the header disapper not the data area.

btw: Is it possible to display the scrollbar initially if forceVerticalScrollbar="true"?

Regards
Helmut

----- Original Message ----- From: "Volker Weber" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Monday, June 11, 2007 1:38 PM
Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE


Hi,

the problem is not the enclosing layout.
The vertical scrollbar width needs to substracted  from the
headerWidth, if the scrollbar is needed.


Regards,
   Volker

2007/6/11, Helmut Swaczinna <[EMAIL PROTECTED]>:
Hi Volker,

ok, I'll add a jira issue.

Is it possible to avoid the resizing as a workaround when I use fix pixel
sizes for the columns or the enclosing
layout?

Regards
Helmut


----- Original Message -----
From: "Volker Weber" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Monday, June 11, 2007 12:11 PM
Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with IE


> Hi Helmut,
>
> yes, add a jira entry.
>
> I looked at this yesterday, and could easy reproduce this, but can't > find
> a fix.
>
> the javascript line which makes the whole sheet disapearing is just a
> resizing of the header width:
>
> Tobago.Sheet.prototype.adjustHeaderDiv = function () {
>    var headerDiv = Tobago.element(this.headerDivId);
>    (...)
>    headerDiv.style.width = Math.max(clientWidth, minWidth);
>    (...)
> }
>
>
> I placed a alert() before and after this line, and just here the sheet
> disapears.
> I have no idea how this happens, or why this could infuence any other > tag
> than the header div.
>
>
> Regards,
>    Volker
>
>
> 2007/6/11, Helmut Swaczinna <[EMAIL PROTECTED]>:
>> Hi,
>>
>> could you please fix this bug? We have a rollout at and of june and >> this
>> is
>> a real killer. Should I add a
>> jira issue for this?
>>
>> Thank you
>> Helmut
>>
>> ----- Original Message -----
>> From: "Helmut Swaczinna" <[EMAIL PROTECTED]>
>> To: "MyFaces Discussion" <[email protected]>
>> Sent: Wednesday, June 06, 2007 12:25 PM
>> Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with >> IE
>>
>>
>> > Hi,
>> >
>> > in the first example I posted there was only one sheet. It didn't
>> > disappear but showed other layout problems the
>> > first time you switch to the tab. (See explanation at the end of >> > this
>> > mail).
>> >
>> > Regards
>> > Helmut
>> >
>> > ----- Original Message -----
>> > From: "Volker Weber" <[EMAIL PROTECTED]>
>> > To: "MyFaces Discussion" <[email protected]>
>> > Sent: Wednesday, June 06, 2007 12:21 PM
>> > Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab with >> > IE
>> >
>> >
>> >> Hi Helmut,
>> >>
>> >> did this problem also exists with only one sheet?
>> >>
>> >>
>> >> Regards,
>> >>    Volker
>> >>
>> >> 2007/6/6, Helmut Swaczinna <[EMAIL PROTECTED]>:
>> >>> Hi,
>> >>>
>> >>> to demonstrate the layout problems with sheet and tab with IE in >> >>> my
>> >>> application I built another
>> >>> very simply test case for you. There're two sheets on one tab. >> >>> Both
>> >>> sheets
>> >>> disappear when you switch to the
>> >>> tab the first time.
>> >>>
>> >>> <f:view>
>> >>>   <tc:page id="sheetPage" width="600px" height="200px">
>> >>>     <tc:tabGroup switchType="reloadTab">
>> >>>       <tc:tab id="tab1" label="Tab1">
>> >>>         <tc:out value="Tab1"/>
>> >>>       </tc:tab>
>> >>>       <tc:tab id="tab2" label="Tab2">
>> >>>         <tc:panel>
>> >>>           <f:facet name="layout">
>> >>>             <tc:gridLayout
>> >>>               columns="1*;1*"/>
>> >>>           </f:facet>
>> >>>           <tc:sheet id="testTable2"
>> >>>             columns="1*;1*"
>> >>>             showHeader="true"
>> >>>             showRowRange="none"
>> >>>             showPageRange="none"
>> >>>             showDirectLinks="none"
>> >>>             first="0"
>> >>>             selectable="none"
>> >>>             var="row"
>> >>>             value="#{controller.list1}">
>> >>>             <tc:column label="Column 1">
>> >>>               <tc:out id="column1"
>> >>>                 value="#{row.column1}"/>
>> >>>             </tc:column>
>> >>>             <tc:column label="Column 2">
>> >>>               <tc:out id="column2"
>> >>>                 value="#{row.column2}"/>
>> >>>             </tc:column>
>> >>>           </tc:sheet>
>> >>>           <tc:sheet id="testTable3"
>> >>>             columns="1*;1*"
>> >>>             showHeader="true"
>> >>>             showRowRange="none"
>> >>>             showPageRange="none"
>> >>>             showDirectLinks="none"
>> >>>             first="0"
>> >>>             selectable="none"
>> >>>             var="row"
>> >>>             value="#{controller.list2}">
>> >>>             <tc:column label="Column 1">
>> >>>               <tc:out id="column1"
>> >>>                 value="#{row.column1}"/>
>> >>>             </tc:column>
>> >>>             <tc:column label="Column 2">
>> >>>               <tc:out id="column2"
>> >>>                 value="#{row.column2}"/>
>> >>>             </tc:column>
>> >>>           </tc:sheet>
>> >>>         </tc:panel>
>> >>>       </tc:tab>
>> >>>     </tc:tabGroup>
>> >>>   </tc:page>
>> >>> </f:view>
>> >>>
>> >>> Please try this code!
>> >>>
>> >>> Regards
>> >>> Helmut
>> >>>
>> >>>
>> >>> ----- Original Message -----
>> >>> From: "H. Swaczinna" <[EMAIL PROTECTED]>
>> >>> To: <[email protected]>
>> >>> Sent: Monday, June 04, 2007 1:06 PM
>> >>> Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab >> >>> with
>> >>> IE
>> >>>
>> >>>
>> >>> > Hi,
>> >>> >
>> >>> > with the moons sheet in demo there seems to be no specific IE
>> >>> > layout
>> >>> > problem
>> >>> > (but a general layout problem with the
>> >>> > period column header). The layout problems with the IE depend on
>> >>> > the
>> >>> > whole
>> >>> > page layout. Please try the code
>> >>> > I posted.
>> >>> >
>> >>> > Regards
>> >>> > Helmut
>> >>> >
>> >>> > BTW: Who does the IE testing?
>> >>> >
>> >>> > ----- Original Message -----
>> >>> > From: "Volker Weber" <[EMAIL PROTECTED]>
>> >>> > To: "MyFaces Discussion" <[email protected]>
>> >>> > Sent: Friday, June 01, 2007 7:42 PM
>> >>> > Subject: Re: [Tobago] Layout problems with tc:sheet in a tc:tab
>> >>> > with
>> >>> > IE
>> >>> >
>> >>> >
>> >>> >> Hi,
>> >>> >>
>> >>> >> the tobago-demo
>> >>> >> http://tobago.atanion.net/tobago-example-demo/faces/overview/tab.jsp
>> >>> >> already contains a sheet inside a tab.
>> >>> >>
>> >>> >> switch to "Server side tabbing", "Moons".
>> >>> >>
>> >>> >> this sheet is loaded by switchtype=reloadTab.
>> >>> >>
>> >>> >> BTW: i also have no IE available.
>> >>> >>
>> >>> >>
>> >>> >> Regards,
>> >>> >>    Volker
>> >>> >>
>> >>> >>
>> >>> >> 2007/6/1, Bernd Bohmann <[EMAIL PROTECTED]>:
>> >>> >>> Hello,
>> >>> >>>
>> >>> >>> just added your test to
>> >>> >>>
>> >>> >>> 
http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tabSheet.jsp
>> >>> >>>
>> >>> >>> but I don't have a Windows with IE available.
>> >>> >>>
>> >>> >>> Can someone with a Windows test this page, please.
>> >>> >>>
>> >>> >>>
>> >>> >>> Regards
>> >>> >>>
>> >>> >>> Bernd
>> >>> >>>
>> >>> >>> H. Swaczinna wrote:
>> >>> >>> > Hi,
>> >>> >>> >
>> >>> >>> > I have three sheets on a tab of a tab group with
>> >>> >>> > switchType="reloadTab".
>> >>> >>> > With Firefox everything is fine
>> >>> >>> > but with IE (6 and 7) there layout problems. In my app all
>> >>> >>> > three
>> >>> >>> > sheets
>> >>> >>> > disappear when I switch to this tab
>> >>> >>> > the first time. The sheets are shown for a short time (ca. >> >>> >>> > 0,1
>> >>> >>> > s)
>> >>> >>> > and
>> >>> >>> > than
>> >>> >>> > disappear. I think they're first shown
>> >>> >>> > with a wrong layout and than relayouted and removed. When I
>> >>> >>> > switch
>> >>> >>> > to
>> >>> >>> > another tab and back the sheets are
>> >>> >>> > shown correctly. With switchType="reloadPage" there's no
>> >>> >>> > problem.
>> >>> >>> >
>> >>> >>> > Because my page layout is very compley I can't send you the
>> >>> >>> > source
>> >>> >>> > code. But
>> >>> >>> > I built a very small example
>> >>> >>> > with a tab and a sheet which shoes some layout problems with >> >>> >>> > IE
>> >>> >>> > also:
>> >>> >>> >
>> >>> >>> > <f:view>
>> >>> >>> >   <tc:page id="resetPage" width="400px" height="200px">
>> >>> >>> >     <tc:tabGroup switchType="reloadTab">
>> >>> >>> >       <tc:tab id="tab1" label="Tab1">
>> >>> >>> >         <tc:out value="Tab1"/>
>> >>> >>> >       </tc:tab>
>> >>> >>> >       <tc:tab id="tab2" label="Tab2">
>> >>> >>> >         <tc:sheet id="testTable"
>> >>> >>> >           columns="1*;1*"
>> >>> >>> >           showHeader="true"
>> >>> >>> >           showRowRange="none"
>> >>> >>> >           showPageRange="none"
>> >>> >>> >           showDirectLinks="none"
>> >>> >>> >           first="0"
>> >>> >>> >           selectable="none"
>> >>> >>> >           var="row"
>> >>> >>> >           value="#{controller.list}">
>> >>> >>> >           <tc:column label="Column 1">
>> >>> >>> >             <tc:out id="column1"
>> >>> >>> >               value="#{row.column1}"/>
>> >>> >>> >           </tc:column>
>> >>> >>> >           <tc:column label="Column 2">
>> >>> >>> >             <tc:out id="column2"
>> >>> >>> >               value="#{row.column2}"/>
>> >>> >>> >           </tc:column>
>> >>> >>> >         </tc:sheet>
>> >>> >>> >       </tc:tab>
>> >>> >>> >     </tc:tabGroup>
>> >>> >>> >   </tc:page>
>> >>> >>> > </f:view>
>> >>> >>> >
>> >>> >>> > When you load the page and switch to Tab 2 the first time >> >>> >>> > then
>> >>> >>> > the
>> >>> >>> > header of
>> >>> >>> > the second column is missing and
>> >>> >>> > there's a horizontal scrollbar (but there's no need for a
>> >>> >>> > scrollbar).
>> >>> >>> > When
>> >>> >>> > you switch to Tab 1 and back to Tab 2
>> >>> >>> > everything is ok.
>> >>> >>> >
>> >>> >>> > I'm using Tobago snapshot from the 23th of April.
>> >>> >>> >
>> >>> >>> > Regards
>> >>> >>> > Helmut
>> >>> >>> >
>> >>> >>>
>> >>> >>
>> >>> >
>> >>>
>> >>>
>> >>
>> >
>> >
>>
>>
>




Reply via email to