0

Listbox with flash scrolling problem

asked 2009-08-21 17:52:45 +0800

bsvSoft gravatar image bsvSoft
48 1

updated 2009-08-21 17:59:01 +0800

Hi All!
I have a problem with listbox in portal layout. I have a listbox, which contains the set of flash objects. The problem is that listbox content is clipped, and no horizontal scroll is displayed. When I use listbox with simple cells, containing labels or images, no problem occurs. Here is the code sample:

<portallayout>
  <portalchildren style="padding: 5px" width="50%">
    <panel height="400px" title="Panel1" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
      <panelchildren>
        <listbox width="100%" vflex="true">
          <listhead><listheader label="problem with scrolling" width="100%"/></listhead>
          <listitem>
            <listcell><flash src="http://www.zkoss.org/Steps/learn.swf" width="400" height="350" /></listcell>
          </listitem>
        </listbox>
      </panelchildren>
    </panel>
  </portalchildren>
  <portalchildren style="padding: 5px" width="50%">
    <panel height="400px" title="Panel2" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
      <panelchildren>
        <listbox width="100%" vflex="true">
          <listhead><listheader label="problem with scrolling" width="100%"/></listhead>
          <listitem>
            <listcell><flash src="http://www.zkoss.org/Steps/learn.swf" width="400" height="350"/></listcell>
          </listitem>
        </listbox>
      </panelchildren>
    </panel>
  </portalchildren>
</portallayout>

I've tried to use percentage width in flash tag, but in this case I've got IE rendering problem.

delete flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2009-08-21 22:33:28 +0800

bsvSoft gravatar image bsvSoft
48 1

Up!

link publish delete flag offensive edit

answered 2009-08-21 23:24:30 +0800

bsvSoft gravatar image bsvSoft
48 1

No one can help? I tried to use iframe tags also, but this trick doesn't solve the problem. Please advice.

link publish delete flag offensive edit

answered 2009-08-22 08:33:16 +0800

bsvSoft gravatar image bsvSoft
48 1

Up!

link publish delete flag offensive edit

answered 2009-08-22 16:43:00 +0800

bsvSoft gravatar image bsvSoft
48 1

Any advice? Please help.

link publish delete flag offensive edit

answered 2009-08-24 04:29:27 +0800

woodyki gravatar image woodyki
168

Try to cancel the keyword width="100%" in Listbox.

link publish delete flag offensive edit

answered 2009-08-24 12:20:19 +0800

bsvSoft gravatar image bsvSoft
48 1

Thanks, woodyki. Unfortunately, it doesn't help. Any other ideas?

link publish delete flag offensive edit

answered 2009-08-24 18:53:33 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

I have tried your code in FF 3,x and chrome 3.x.
What is exactly the problem with it ??? What should be clipped ??

regards
Stephan

link publish delete flag offensive edit

answered 2009-08-26 15:22:10 +0800

bsvSoft gravatar image bsvSoft
48 1

updated 2009-08-26 18:48:47 +0800

terrytornado
Thanks for your interest! Flash object is clipped when browser is resized.
This is a problem of IE 7 and FF 2.x. I didn't test it on FF 3.x and chrome 3.x

link publish delete flag offensive edit

answered 2009-08-26 19:27:32 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-08-26 19:29:45 +0800

I have tested in FF 3.5x and chrome 3.x.

I have played with your code for a while. The problem to solved is
how we can made the flash scrollable. My last tries goes in a direction to do a
panel under the flash but it has not the needed effect.

link publish delete flag offensive edit

answered 2009-08-26 20:02:23 +0800

bsvSoft gravatar image bsvSoft
48 1

Thanks for your tries.
I thought that iframe can help with this, but it doesn't help for me. May be you can try to use it and paste flash src into iframe? I tried as follows:

<portallayout>
  <portalchildren style="padding: 5px" width="50%">
    <panel height="400px" title="Panel1" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
      <panelchildren>
        <listbox width="100%" vflex="true">
          <listhead><listheader label="problem with scrolling" width="100%"/></listhead>
          <listitem>
            <listcell><iframe src="http://www.zkoss.org/Steps/learn.swf" width="100%" height="100%"/></listcell>
          </listitem>
        </listbox>
      </panelchildren>
    </panel>
  </portalchildren>
  <portalchildren style="padding: 5px" width="50%">
    <panel height="400px" title="Panel2" border="normal" collapsible="true" closable="true" maximizable="true" style="margin-bottom:10px">
      <panelchildren>
        <listbox width="100%" vflex="true">
          <listhead><listheader label="problem with scrolling" width="100%"/></listhead>
          <listitem>
            <listcell><iframe src="http://www.zkoss.org/Steps/learn.swf" width="100%" height="100%"/></listcell>
          </listitem>
        </listbox>
      </panelchildren>
    </panel>
  </portalchildren>
</portallayout>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-08-21 17:52:45 +0800

Seen: 660 times

Last updated: Sep 02 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More