Thanks!
Mike
On 9/25/06, Sebastian Werner <[EMAIL PROTECTED]> wrote:
Hi Mike,
please create a new qooxdoo demo and try to integrate the problematic
code into it. But please try to keep it small and clean (without any
Ajax and Effect calls). Maybe this will help us to understood your problem.
Cheers,
Sebastian
Mike Crowe schrieb:
> OK, this is complex, so I'll do my best. I wish I could upload whole
> app, but I hope it won't be necessary.
>
> Here's how I'm declaring my tab pane. BTW, the overall system is
> working almost correctly. This is strange.
>
> var tabView = new qx.ui.pageview.tabview.TabView ;
> with(tabView)
> {
> ...snip...
> var tabDay = new qx.ui.pageview.tabview.TabViewButton ("Day");
> var pageDay = new qx.ui.pageview.tabview.TabViewPage(tabDay);
> pageDay.setHtmlAttribute('id','daycode');
> pageDay.setHeight("300");
> tabDay.addEventListener ("appear", function() {
> new Ajax.Updater('daycode', '/web/index.php/Time2Do/CreateDay',
> {asynchronous:true, evalScripts:true, onComplete:function(request,
> json){new Effect.Fade('indicator', {});new Effect.Highlight('post_nb',
> {});}, onLoading:function(request, json){new Effect.Appear('indicator',
> {});}})
> });
> tabDay.setChecked(true);
> getBar().add(tabDay);
> getPane().add(pageDay);
> ...
>
> So, I'm taking HTML generated by an ajax function.
>
> What I want is a division of fixed height as the header and a division
> of fixed height with scroll-bars to scroll the results, all inside that
> TabPage.
>
> Here's the HTML being generated from the above. The "daycode" DIV comes
> from the _javascript_. The inside DIV and Table come from my ajax function.
>
> <div id="daycode" style="position: absolute; height: 300px; left: 10px;
> right: 10px; top: 10px; bottom: 10px;">
> <div class="t2dWeekDivHeader">
> <table class="t2dWeekTable" border="2" cellpadding="0" cellspacing="0">
> (header table)
> </table>
> <div id="T2Day" class=" t2dWeekDivStart">
> <table class="t2dWeekTable" border="2" cellpadding="0" cellspacing="0">
> (body table)
> </table>
> </div>
>
> Styles:
> .t2dWeekDivHeader {
> margin-right: 14px;
> }
> .t2dWeekDivStart {
> overflow-y: auto;
> height: 200px;
> }
> .t2dWeekTable {
> border: 1px;
> text-align: left;
> }
>
>
> Here's my problem: The (body table) is overflowing the division in most cases.
> However, if I set the height in the style sheet to a fixed size, it works.
>
> If I enter a percentage there, the <table> overflows the parent <div>.
>
> I have tried setting via _javascript_:
> $('T2Day').height = '300px';
> $('T2Day').scrollTop = $('dayhour8').offsetTop-2;
>
>
> The 2nd piece of code works, and scrolls the window to 8:00am.
> I thought the first line would resize and make the table show in scroll bars, but no luck.
>
> I guess I'm looking for ideas.
>
> I suppose I could put a VerticalBoxLayout and add 2 elements, and have the ajax split into
>
> a header element and a footer element with scrolling, but it's a pane (I mean pain). :D
>
> Please offer some suggestions.
>
> TIA
> Mike
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net 's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel