Empty slots in Rack view take up less space than occupied slots
-
An empty slot in Rack (front/back) view takes up less space than an occupied slot.
The alignment of the front and back column gets out of order if there are more empty slots in one of these columns.I changed line 632 of the "/idoit/src/tools/js/scripts.js" file to fix this problem.
el.insert(new Element('tr', { className: css, 'data-slotnum': i }).update(new Element('td').update(num + ' ')).insert(new Element('td', { className: 'slot' }).update( ')).insert(new Element('td').update(' ' + num))); if (rowspan > 0) { el.down('tr:last').down('td', 1).remove(); rowspan--; }el.insert(new Element('tr', { className: css, 'data-slotnum': i }).update(new Element('td').update(num + ' ')).insert(new Element('td', { className: 'slot' }).update(new Element('div').setStyle({ height: '19px' }))).insert(new Element('td').update(' ' + num))); if (rowspan > 0) { el.down('tr:last').down('td', 1).remove(); rowspan--; }This bug is present in the pro version.
-
Hi there,
thanks a lot for the patch - I'll implement this in the next minor release (i-doiv v 1.2.3).
But first we need to test a few browsers (Chrome, Firefox, IE, …).By the way, this seems to work a bit better (because we need to consider the "room" view)
el.insert( new Element('tr', {className:css, 'data-slotnum':i}) .update(new Element('td').update(num + ' ')) .insert(new Element('td', {className:'slot'}).update('')) //.insert(new Element('td', {className:'slot'}).update(' ')) .insert(new Element('td').update(' ' + num)) );Greetings from germany
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login