WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 10 months ago

#39267 closed defect (bug) (worksforme)

ThickBox window dimension

Reported by: parselearn Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: General Keywords:
Focuses: ui, javascript, administration Cc:

Description

Hello
I use ThickBox in my new plugin
https://codex.wordpress.org/Javascript_Reference/ThickBox

The problem in uses thickbox my dimension don`t effected!
href value: #TB_inline?width=400&height=410&inlineId=wpu_box_parent
I set width: 400px & height: 410px, but in per page different dimension

Attachments (8)

Firefox_Screenshot_2016-12-13T16-45-17.372Z.png (31.3 KB) - added by parselearn 4 years ago.
Dashboard
Firefox_Screenshot_2016-12-13T16-45-38.204Z.png (34.5 KB) - added by parselearn 4 years ago.
Posts
Firefox_Screenshot_2016-12-13T16-45-56.620Z.png (47.3 KB) - added by parselearn 4 years ago.
Add new Post
Firefox_Screenshot_2016-12-13T16-46-11.060Z.png (41.3 KB) - added by parselearn 4 years ago.
Tags
Firefox_Screenshot_2016-12-13T16-46-27.874Z.png (33.1 KB) - added by parselearn 4 years ago.
Library
Firefox_Screenshot_2016-12-13T16-48-19.514Z.png (64.9 KB) - added by parselearn 4 years ago.
Themes
Firefox_Screenshot_2016-12-13T16-48-39.922Z.png (41.5 KB) - added by parselearn 4 years ago.
Plugins
Firefox_Screenshot_2016-12-13T16-48-53.834Z.png (45.1 KB) - added by parselearn 4 years ago.
Users

Download all attachments as: .zip

Change History (11)

#1 in reply to: ↑ description @parselearn
4 years ago

And in some page add "thickbox-loading" class to #TB_window

How to add title in thickbox?
For this problem i use jQuery & set this, Another way?

Last edited 4 years ago by parselearn (previous) (diff)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


10 months ago

#3 @talldanwp
10 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @parselearn,

Apologies that you didn't receive a response to your ticket! I've just tested the example for Thickbox from the documentation:
https://codex.wordpress.org/Javascript_Reference/ThickBox

I was able to make a modal with different dimensions:

add_thickbox(); ?>
<div id="my-content-id" style="display:none;">
        <p>
                This is my hidden content! It will appear in ThickBox when the link is clicked.
        </p>
</div>

<a href="#TB_inline?&width=100&height=150&inlineId=my-content-id" class="thickbox">View my inline content!</a>

And this worked without any problem. I'll close the ticket, as it's fairly old and I couldn't find an issue.

How to add title in thickbox?
For this problem i use jQuery & set this, Another way?

I'd recommend reaching out to WordPress forums if you need further help - https://wordpress.org/support/forum/wp-advanced/.

Note: See TracTickets for help on using tickets.