dondi / GRNsight

Web app and service for modeling and visualizing gene regulatory networks.
http://dondi.github.io/GRNsight
BSD 3-Clause "New" or "Revised" License
17 stars 8 forks source link

Log Fold Change Max value selection on sidebar has issues #905

Closed igreen1 closed 3 years ago

igreen1 commented 3 years ago

On @igreen1 machine (Firefox 84.0.2, Ubuntu 20.04), the Log Fold Change Max value selection on the sidebar does not work. It does, however, work on the dropdown (Node -> Log Fold Change Max Value). This issue exists even after every single extensions was removed from @igreen1's browser (including the seemingly unrelated ones)

image

This is possibly linked to the lack of a 'set' button. On @dondi's machine there is an additional 'set' button next to the input value. This issue requires additional help in replication to find where the bug lies.

No relevant web console output was logged on page load. @igreen1 will try to replicate this issue on Windows Firefox and on Windows Edge/Chrome.

igreen1 commented 3 years ago

@ahmad00m has confirmed that this issue does not occur on his installation of Chrome, Safari, or Firefox on MacOS

This issue then is either with Linux, a specific version of Firefox, or some add-on (though @igreen1 has all add-ons turned off for GRNSight)

igreen1 commented 3 years ago

This issue does not exist on Windows with Firefox 80.4.2, Chrome, or Edge (odd!)

It might be an issue with Linux or Firefox's linux version. Therefore, definitely a lower priority. Of note, because of Firefox Sync, the firefox test on Windows was done with all the same extensions as in the Linux Firefox test. And, of course, was also tested with all of those extensions turned off.

@Onariaginosa uses Linux I believe, so might be helpful if they could test on their computer? @igreen1 will try it on a virtual machine later (having a few virtualbox kernel errors at the moment)

igreen1 commented 3 years ago

Issue confirmed on a virtualbox Ubuntu 20.04 running Firefox 80.4.2

So Linux Firefox has a bug. Low priority but fascinating!

mihirsamdarshi commented 3 years ago

I am unable to replicate this on my native Ubuntu 20.04 machine running Chrome, which is interesting because Chrome and Firefox are basically the same thing.

igreen1 commented 3 years ago

Bug identified! The button is 'present' but overflows and is made hidden as a result (other elements are placed on top). This bug only appears in Linux Firefox 84.x.x. and above as far as tested (interesting!) Present on resizing as well.

image

Simple solution. The numeric input field can be limited to 75% of sidebar size. This was done in commit 2598170cfbda751fe02a3008056b62c84865e8bb

Would like further testing to confirm this works on other configurations before a PR to beta.

This also required a 'force' commit as 'grnsight.css' is in the gitignore. Is there a reason for this?

dondi commented 3 years ago

Will need independent verification on anyone who has access to Linux Firefox 84.x.x. Also, force commit was due to original styles actually being derived from .styl files, so @igreen1 will make those changes there instead.

igreen1 commented 3 years ago

Better fix thanks to @dondi

@Onariaginosa would love a review! Works on my machine (Ubuntu 20.04) with Firefox 86

Would appreciate a Mac user taking a glance as well to make sure it didn't break compatibility @ahmad00m

Onariaginosa commented 3 years ago

On Firefox 86 the set button is still slightly hidden for me. Maybe make the input bar 50% - 60% of the sidebar size? Screenshot from 2021-03-17 11-50-45

ahmad00m commented 3 years ago

@ahmad00m check it the set button on Chrome 89, Firefox 86, and Safari 14 and it was fully visible.

dondi commented 3 years ago

This input field doesn't seem like it needs that much room so sounds OK to be more aggressive with tightening size. @igreen1 after making this adjustment, let’s have one more round similar to the one that just transpired.

igreen1 commented 3 years ago

Changed to 50% in commit e8dc3b9c325df14196900b2cf811efe96b899104

On Linux 20.04, Firefox 86

image

ahmad00m commented 3 years ago

@ahmad00m verifies that this change is compatible with Mac.

Onariaginosa commented 3 years ago

@Onariaginosa confirms that it visible on Firefox 86

dondi commented 3 years ago

Looks verified; PR forthcoming.

ahmad00m commented 3 years ago

@ahmad00m confirms that it is visible on Safari 14.0.2 and Firefox 88.