Skip to content

alwaysShowResizeHandle does not work anymore in v2.0.0 #1373

Closed

Description

@loedeman

Subject of the issue

Since v2.0.0, the option alwaysShowResizeHandle does not work anymore. I looked up the code and assume this functionality has been deleted when JQuery (UI) was deleted from the codebase.

Your environment

  • v2.0.0
  • Any browser (mine is the latest Chrome version)

Steps to reproduce

This also occurs in your own demos. The easiest way to reproduce is to open own of your own examples using this option, like the advanced demo.

Expected behaviour

Auto hide of resize handles should work.

Actual behaviour

Auto hide of resize handles does not work, handles are always being shown.

Activity

  1. adumesny commented on Sep 27, 2020

    @adumesny
    Member

    I'm not seeing this issue on Chrome/Windows 10. please provide what browser and with 1.21.1 vs 2.0.0 as maybe your browser doesn't support these

        var grid = GridStack.init({
          alwaysShowResizeHandle: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
            navigator.userAgent
          ),
          resizable: {
            handles: 'e, se, s, sw, w'
          },

    image

  2. loedeman commented on Sep 28, 2020

    @loedeman
    Author

    Sorry, but your screenshot shows the problem exactly. In my screenshot, I circled all resize handles which should NOT be visible, unless HOVERED.

    image

    Imho, immediately closing an issue is not that friendly too by the way. I will think twice now before reporting another issue.

  3. loedeman commented on Sep 28, 2020

    @loedeman
    Author

    BTW, I am using the latest version of Chrome (85.0.4183.121) on the latest version of Windows 10. I already explicitly stated that I was using Gridstack 2.0.0 and that the issue applies to all browsers.

  4. adumesny commented on Sep 28, 2020

    @adumesny
    Member

    Please re-read your bug report. You said "alwaysShowResizeHandle does not work anymore" then you point to my example which does show the resize handles in all corners as stated in the code, while other demos do show on hover only (don't have that flag turned on).

    You didn't bother copying the bug template and modifying to show an actual bug, but expect me to debug it for you ???
    a lot of people file bugs when it's user error, then don't get back to me, and I don't have the bandwidth to debug it. It's simple enough to re-open when you actually have a reproduceable case.

    then in your later comment you say "In my screenshot, I circled all resize handles which should NOT be visible, unless HOVERED." then you must be turning that feature off - how am I supposed to know what you mean ?

    | I will think twice now before reporting another issue.

    what do you expect ? this is a free lib and I didn't see you contribute time or $ (there is a donate button in case you missed it). I spent a LOT of personal time maintaining this lib and you didn't file a reproduceable bug. Thank you for taking 20min of my time this morning debugging it for you twice now.

    Note to self: apparently this flag define IF the handles are always visible or not, instead of alwaysShowResizeHandle . Not sure if new in 2.x

    resizable: { handles: 'e, se, s, sw, w' }
  5. adumesny commented on Oct 6, 2020

    @adumesny
    Member

    fixed in next release

  6. loedeman commented on Oct 6, 2020

    @loedeman
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions