0

listbox with scroll bar problem

asked 2010-02-19 04:15:27 +0800

sanhaq gravatar image sanhaq
264 1 6

I have one listbox and i have set one model as arraylist(list) to that listbox

<listbox model="@{list}>
<listitem value="@{aRecord}" self="@{each=aRecord}">
<listcell  label="@{aRecord.aField}"/>
<listcell image="delete.gif"/>
</listbox>

I have kept one delete image in each row of that listbox.
And onclicking of that image I want to remove that listitem from that listbox.
Now the problem is if the listbox has say three items and I'm deleting from the last item.
What i see is when the last item remains then the scroll bar comes in that listbox.
It's consistently happening in IE but sometime in Mozila. I have tried different way to delete item
on clicking the listitem those are:
1) I have removed that corresponding object from the arraylist and called that binder.loadAll() method.
2) I have detached that item from the listbox.
3) I have made that item invisible.
But it fails to remove the scroll bar when it reaches to a single listitem.
Interesting point is if start deleting the item from the 0 the listitem then that doesn't happen.
plz help.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-02-22 19:46:49 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Hey Sanhaq,

What versions of IE have you noticed this problem in? Does it happen with a specific number of items or only when there is 3 items?

Thanks,
Tim

link publish delete flag offensive edit

answered 2010-02-23 03:00:29 +0800

sanhaq gravatar image sanhaq
264 1 6

IE version 6;
The behavior is quite erratic in nature.
It's not for 3 items.It may occur for more than 2 items if delete from the end of the list then
the scroll bar comes in IE.

link publish delete flag offensive edit

answered 2010-02-24 01:49:59 +0800

tmillsclare gravatar image tmillsclare
799 2 5 30

Hey Sanhaq,

Can you please submit this as a bug here with a simple example for replication?

Thanks,
Tim

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: 2010-02-19 04:15:27 +0800

Seen: 626 times

Last updated: Feb 24 '10

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