WordPress.org

Making WordPress.org

Opened 3 months ago

#5229 new defect

Support forums: expanded code still has scrollbar

Reported by: joyously Owned by:
Milestone: Priority: normal
Component: Support Forums Keywords: has-screenshots
Cc:

Description

The recent addition of the Expand/Contract button for forum topics' code sections does not appear to take into account the horizontal scrollbar for long lines.
This leaves the vertical scrollbar still there for 1 line's worth.
An example is on https://wordpress.org/support/topic/get-user-roles-in-function/
See attached for how it looks in Firefox.

A similar formatting is done in the Code Reference, but the vertical scrollbar is not shown, as it is outside the code container. An example is on https://developer.wordpress.org/reference/functions/media_handle_sideload/
See attached for how it looks in Firefox.

Attachments (2)

Get user roles in function WordPress.org-25.jpg (114.2 KB) - added by joyously 3 months ago.
Firefox shows both scrollbars of expanded code in forum topic
media_handle_sideload() Function WordPress Developer Resources-10.jpg (112.3 KB) - added by joyously 3 months ago.
Firefox shows horizontal scrollbar of expanded code in Code Reference

Download all attachments as: .zip

Change History (2)

@joyously
3 months ago

Firefox shows both scrollbars of expanded code in forum topic

@joyously
3 months ago

Firefox shows horizontal scrollbar of expanded code in Code Reference

Note: See TracTickets for help on using tickets.