WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17249, comment 2


Ignore:
Timestamp:
03/10/2014 08:39:35 AM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17249, comment 2

    initial v1  
    55It seems there is a workaround, possibly...
    66
    7 "I think i found a solution how to change the width, but that's not the real solution.. I steel don't get it why thickbox width is 670px (as u can see in my code (will folow next) the global thickbox width is set like the parsed arg!! ) So the solutins was: tb_show( ed.getLang('m7.popup_title'), '#TB_inline?width=800&height=600&inlineId=mygallery-form' ); m7_resize_thickbox(); jQuery(window).resize(function(){ m7_resize_thickbox(); }); function m7_resize_thickbox(){ jQuery(document).find('#TB_window').width(TB_WIDTH).height(TB_HEIGHT).css('margi‌​n-left', - "
     7"I think i found a solution how to change the width, but that's not the real solution.. I steel don't get it why thickbox width is 670px (as u can see in my code (will folow next) the global thickbox width is set like the parsed arg!! ) So the solutins was:
     8{{{
     9tb_show( ed.getLang('m7.popup_title'), '#TB_inline?width=800&height=600&inlineId=mygallery-form' );
    810
     11m7_resize_thickbox();
     12
     13jQuery(window).resize( function() {
     14        m7_resize_thickbox();
     15});
     16
     17function m7_resize_thickbox() {
     18        jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
     19}
     20}}}
    921Quoted from Stack Exhange:[http://wordpress.stackexchange.com/questions/114107/thickbox-width-cant-be-changed-in-admin/137286#137286]