You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2005/11/11 02:22:01 UTC

Re: [OT] scrollbar vs multibox

Eric Plante wrote:
> hi,
> 
> I have a div on autoscroll that contains multibox. Here's the code
> 
> <div id="motUrlLst" class="motLst">
>   <logic:iterate id="mot" name="PandoraForm" property="motTreeMap">
>       &nbsp;
>       <html:multibox property="motSelectLst" style="width: 10px;height: 
> 10px" onclick="autoPostBack('motSelectLst;' + this.value);">
>          <bean:write name="mot" property="key"/>
>       </html:multibox>
>          <span class="mot" onclick='remplirChampsMot("<bean:write 
> name="mot" property="key"/>")'>
>              <bean:write name="mot" property="value" filter="false"/>
>          </span><br/>
>       </logic:iterate>
> </div>
> 
> It works fine when the vertical scroll bar is needed but instead of 
> applying the  horizontal, the text change line which is annoying.
> 
> Any idea how the problem could be solved?
> 
> Thanks

This is nothing to do with Struts, it's just how the HTML render model 
works. I'm sure there are other solutions, but the two I'd look at to 
start would be setting nowrap or minwidth on the div in its CSS rules.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [OT] scrollbar vs multibox

Posted by Eric Plante <pl...@videotron.ca>.
Thanks, it worked.

Sorry of the out of topic post.

> Eric Plante wrote:
> > hi,
> >
> > I have a div on autoscroll that contains multibox. Here's the code
> >
> > <div id="motUrlLst" class="motLst">
> >   <logic:iterate id="mot" name="PandoraForm" property="motTreeMap">
> >       &nbsp;
> >       <html:multibox property="motSelectLst" style="width: 10px;height:
> > 10px" onclick="autoPostBack('motSelectLst;' + this.value);">
> >          <bean:write name="mot" property="key"/>
> >       </html:multibox>
> >          <span class="mot" onclick='remplirChampsMot("<bean:write
> > name="mot" property="key"/>")'>
> >              <bean:write name="mot" property="value" filter="false"/>
> >          </span><br/>
> >       </logic:iterate>
> > </div>
> >
> > It works fine when the vertical scroll bar is needed but instead of
> > applying the  horizontal, the text change line which is annoying.
> >
> > Any idea how the problem could be solved?
> >
> > Thanks
>
> This is nothing to do with Struts, it's just how the HTML render model
> works. I'm sure there are other solutions, but the two I'd look at to
> start would be setting nowrap or minwidth on the div in its CSS rules.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org