Skip to content

[Feature]: Allow scroll of the canvas if the device height exceeds the available height #2201

Closed

Description

@grant007

Given the following code example...

editor.DeviceManager.add('test', '300px', {
                      height: '1000px',
                      widthMedia: '300px',
});
editor.setDevice("test");

Results in no ability to scroll to top of canvas if editor display area is less than specified height of the device.

See Fiddle for demonstration...

https://jsfiddle.net/gstone007/0vq3o2jf/1/

Activity

  1. artf commented on Sep 15, 2019

    @artf
    Member

    After exploring a bit more about this issue I'd suggest just not to exceed the canvas height with the device one. Unfortunately, currently, making any part of the canvas scrollable (solution suggested by @TheDiamondKing ) will lead to unexpected behaviors.
    I'm working on the frame and canvas refactoring, so probably this will be solved differently

  2. contentfree commented on Jul 3, 2023

    @contentfree
    Contributor

    @artf Is your comment still true? Does adding overflow: auto (especially in a "designer mode" / "absolute mode" canvas) still cause problems?

  3. changed the title [-][BUG]: Can't scroll if device height exceeds editor height[/-] [+][Feature]: Allow scroll of the canvas if the device height exceeds the available height[/+] on Aug 10, 2023
  4. locked and limited conversation to collaborators on Aug 10, 2023
  5. converted this issue into a discussion #5296 on Aug 10, 2023
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