Skip to content

Add Expand Button to Replace Scroll Bars in Example Output Frames #7620

Closed
@himanshuukholiya

Description

@himanshuukholiya

Increasing access

Unwanted scroll bars appear in p5.js example output frames (e.g., Issue #716), especially in Chrome at 60-70% zoom, reducing sketch visibility.

Problem:
Scroll bars block parts of the sketch, appear inconsistently, and make it tough to view everything, especially bigger examples.

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature request details

Proposed Solution:
Remove Scroll Bars: Eliminate unnecessary scroll bars from output frames.
Add Expand Button: Put in a button to expand the sketch into a fixed-size, centered view, with a minimize option.

Benefits:
Ensures full sketch visibility.
Gives users control over display size.
Creates a consistent, user-friendly experience.

Challenges:
Figuring out when the sketch is too big for the frame to show the expand button (eg, by checking the size of the iframe vs the size of the document in the iframe).
Limited use case if few examples require expansion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions