Mordel's Bar & Grill
Bug in "submit custom unit"?
Post new topic   Reply to topic    Mordel's Bar & Grill Forum Index » Site Bugs and Enhancements
View previous topic :: View next topic  
Author Message
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-07 11:32    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message
Mordel
Mordel.Net
Administrator
Administrator


Joined: 2002-02-02 23:00
Posts: 5431
Location: United States
PostPosted: 2013-11-07 14:42    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

What browser and version are you using?
_________________
Mordel Blacknight - Site Administrator
Back to top View profile Send site message Send e-mail Visit website Facebook Username Twitter Username Steam Custom URL
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-08 09:37    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message
Mordel
Mordel.Net
Administrator
Administrator


Joined: 2002-02-02 23:00
Posts: 5431
Location: United States
PostPosted: 2013-11-08 10:51    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message Send e-mail Visit website Facebook Username Twitter Username Steam Custom URL
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-08 11:14    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message
Mordel
Mordel.Net
Administrator
Administrator


Joined: 2002-02-02 23:00
Posts: 5431
Location: United States
PostPosted: 2013-11-08 11:51    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message Send e-mail Visit website Facebook Username Twitter Username Steam Custom URL
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-08 14:25    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

1)

imageshack.us/photo/my-images/266/jc97.jpg/


2)
Sure. Thanks for your trust in me!
But my time here is rather sporadic Wink
_________________
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 View profile Send site message
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-14 15:29    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

Just if it came across wrong(ly?): The second answer was a "Yes" Embarassed 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 View profile Send site message
Mordel
Mordel.Net
Administrator
Administrator


Joined: 2002-02-02 23:00
Posts: 5431
Location: United States
PostPosted: 2013-11-14 16:14    Post subject: Re: Bug in "submit custom unit"? Reply to topic Reply with quote

Rudel Gurken wrote:
Just if it came across wrong(ly?): The second answer was a "Yes" Embarassed 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". Smile

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 View profile Send site message Send e-mail Visit website Facebook Username Twitter Username Steam Custom URL
Rudel Gurken
Allisters Light Thunder
Major
Major


Joined: 2005-06-14 23:00
Posts: 1240
Location: Germany
PostPosted: 2013-11-16 10:08    Post subject: Bug in "submit custom unit"? Reply to topic Reply with quote

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 View profile Send site message
Display posts from previous:
Post new topic   Reply to topic    Mordel's Bar & Grill Forum Index » Site Bugs and Enhancements All times are GMT-05:00

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum