View previous topic :: View next topic |
Author |
Message |
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 07-Nov-2013 12:32 Post subject: Bug in "submit custom unit"? |
|
|
I submitted a new mech to the database and encountered a strange behaviour: When choosing from the drop down list of weapons (the "All"-box checked) everything works as expected down to the Rotary AC/2 Ammo (45).
Under that every click on an entry chooses the entry one row up (choosing the RAC/5 will get you a RAC/2 Ammo (45) and so on). Further down it gets worse: choosing an MRM-40 will get you an MRM-30 (two rows up) and choosing an AMS will get you a Hatchet (three rows up). _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
Mordel Mordel.Net Administrator
Joined: 03-Feb-2002 00:00 Posts: 6061 Location: United States
|
Posted: 07-Nov-2013 15:42 Post subject: Bug in "submit custom unit"? |
|
|
What browser and version are you using? _________________ Mordel Blacknight - Site Administrator
|
|
Back to top |
|
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 08-Nov-2013 10:37 Post subject: Bug in "submit custom unit"? |
|
|
I'm using Firefox 26.0 _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
Mordel Mordel.Net Administrator
Joined: 03-Feb-2002 00:00 Posts: 6061 Location: United States
|
Posted: 08-Nov-2013 11:51 Post subject: Bug in "submit custom unit"? |
|
|
That's what I use as well as don't notice anything. Having said that there are many different ways to scroll through that box using the mouse and keyboard. So, while it may sound weird, could you explain to me exactly how you get to the items you reference in the dropdown? For example, do you click on the list, then use the scroll wheel, down arrow, page down, combination, etc?
Reproducing is always the hardest part. _________________ Mordel Blacknight - Site Administrator
|
|
Back to top |
|
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 08-Nov-2013 12:14 Post subject: Bug in "submit custom unit"? |
|
|
I've now tried some combinations:
It does not depend on how i get up or down the list (scroll wheel, Up/down arrows, Up/down on the keypad) but when i click into the list to choose a weapon with my mouse it shows this strange behaviour.
When i choose it with the Up/down keys on the keypad and hit "Enter" it does not show that behaviour.
If i do not use my mouse but the touchpad on my laptop to click into the list i get the strange behaviour again.
So it seems not to be a problem with my mouse. _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
Mordel Mordel.Net Administrator
Joined: 03-Feb-2002 00:00 Posts: 6061 Location: United States
|
Posted: 08-Nov-2013 12:51 Post subject: Bug in "submit custom unit"? |
|
|
The way the code for that list works is a bit complicated. Naturally a normal pulldown wouldn't work because of the columns, so what I ended up doing was using a hidden div with a defined height, and then created a custom scrollbar. What it displays in the viewable area is an offset from the top of the div based on where the scrollbar is positioned.
When you click in the simulated pulldown, it registers your Y position within the div and then uses that, in conjunction with the calculated height of each row, to determine which item you clicked on. For example, if I have 100 rows and each row is 10 pixels high, if the Y position of my click is 73, then that would mean I am clicking on row 8.
What appears to be happening is either the calculation for the row height is wrong or the Y position being registered is wrong. I'm betting the calculation is wrong, for whatever reason. So, a couple of questions for you:
1) Could you take a screenshot of the equipment selection with the dropdown open and your mouse over the row you WANT to select (e.g., RAC 5) and upload it to this thread?
2) If I can open up my firewall and give you access to my test site, would you be willing to work with me to test any updates I make? _________________ Mordel Blacknight - Site Administrator
|
|
Back to top |
|
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 08-Nov-2013 15:25 Post subject: Bug in "submit custom unit"? |
|
|
1)
imageshack.us/photo/my-images/266/jc97.jpg/
2)
Sure. Thanks for your trust in me!
But my time here is rather sporadic _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 14-Nov-2013 16:29 Post subject: Bug in "submit custom unit"? |
|
|
Just if it came across wrong(ly?): The second answer was a "Yes" if you don't mind the one or other delay. _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
Mordel Mordel.Net Administrator
Joined: 03-Feb-2002 00:00 Posts: 6061 Location: United States
|
Posted: 14-Nov-2013 17:14 Post subject: Re: Bug in "submit custom unit"? |
|
|
Rudel Gurken wrote: | Just if it came across wrong(ly?): The second answer was a "Yes" if you don't mind the one or other delay. |
Didn't come across wrong at all. I actually think I have a way to do it that doesn't rely on trying to figure out the Y position of where you clicked. Requires a rework of how I do things behind the scenes, but assuming I do and it works for me, all I really need from you after I upload the fixes will be a simple "Yep, works good now".
It'll be part of the 2.12.0 update, along with a host of other things, so keep an eye out for that notice. _________________ Mordel Blacknight - Site Administrator
|
|
Back to top |
|
Rudel Gurken Allisters Light Thunder Major
Joined: 15-Jun-2005 00:00 Posts: 1456 Location: Germany
|
Posted: 16-Nov-2013 11:08 Post subject: Bug in "submit custom unit"? |
|
|
Ok! I've enough designs ready to try it out 8) _________________ Reality is where the Pizza-man comes from!'Gucken, petzen, verpissen!' (Look at it, squeal it, get the hell away from it!) – Motto of the recon troops'Artillery doesn´t know friend or foe! They only know worthwhile targets!‘ – Kuritan Infantrist
|
|
Back to top |
|
|