<bdo id='efzsp'></bdo><ul id='efzsp'></ul>
    1. <legend id='efzsp'><style id='efzsp'><dir id='efzsp'><q id='efzsp'></q></dir></style></legend>
      <i id='efzsp'><tr id='efzsp'><dt id='efzsp'><q id='efzsp'><span id='efzsp'><b id='efzsp'><form id='efzsp'><ins id='efzsp'></ins><ul id='efzsp'></ul><sub id='efzsp'></sub></form><legend id='efzsp'></legend><bdo id='efzsp'><pre id='efzsp'><center id='efzsp'></center></pre></bdo></b><th id='efzsp'></th></span></q></dt></tr></i><div id='efzsp'><tfoot id='efzsp'></tfoot><dl id='efzsp'><fieldset id='efzsp'></fieldset></dl></div>
      <tfoot id='efzsp'></tfoot>

      <small id='efzsp'></small><noframes id='efzsp'>

      1. 改变 nyromodal 窗口的大小

        时间:2023-06-21
        <legend id='WXyuj'><style id='WXyuj'><dir id='WXyuj'><q id='WXyuj'></q></dir></style></legend>

        • <tfoot id='WXyuj'></tfoot>
              <tbody id='WXyuj'></tbody>

            <i id='WXyuj'><tr id='WXyuj'><dt id='WXyuj'><q id='WXyuj'><span id='WXyuj'><b id='WXyuj'><form id='WXyuj'><ins id='WXyuj'></ins><ul id='WXyuj'></ul><sub id='WXyuj'></sub></form><legend id='WXyuj'></legend><bdo id='WXyuj'><pre id='WXyuj'><center id='WXyuj'></center></pre></bdo></b><th id='WXyuj'></th></span></q></dt></tr></i><div id='WXyuj'><tfoot id='WXyuj'></tfoot><dl id='WXyuj'><fieldset id='WXyuj'></fieldset></dl></div>

            <small id='WXyuj'></small><noframes id='WXyuj'>

                • <bdo id='WXyuj'></bdo><ul id='WXyuj'></ul>
                  本文介绍了改变 nyromodal 窗口的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这个脚本一直等到用户按下按钮,所以 nyromdal 开始

                  This script waits till user presses the button so nyromdal starts

                  $('.image_upload').nm({
                      sizes: {minW:10,minH:10 },
                      modal: false,
                    closeOnClick: false
                          });
                  

                  然后在按下脚本后,在更改 nyromodal 窗口的内容后,我试图更改窗口的大小,但它不会立即更改它,因此大小保持旧,出现滚动条.只有当您关闭窗口并再次调用它时,新的大小才会影响窗口.

                  Then in after press script, after changing content of nyromodal window I'm trying to change the size of window but it does not changes it immediately so the size remains old, scroll bars appear. And new size affect window only if you close the window and call it back again.

                  此代码将新内容放入 nyromdal 窗口中

                  This code puts new content into nyromdal window

                  $('.nyroModalDom').html(responseimage);
                  

                  这里我们有两种改变大小的方法.两者都只能在关闭重新打开窗口后工作,而不是立即工作.

                  And here we have 2 ways of changing the size. Both work only after close-reopen of window, not immediately.

                  1

                  $.nyroModalSettings({
                  width: 800,
                  height: 800
                  });
                  

                  2

                  $.nmObj({
                  width: 800,
                  height: 800
                  });
                  

                  那么如何在不重新打开的情况下更改窗口的大小?

                  So how can I change the size of window without reopen ?

                  更新

                  刚刚找到了新功能,但也无法调整窗口大小.滚动条消失,好像窗口要调整大小,但它保持不变,滚动条再次出现.

                  Have found just now new function but it also fails to resize the window. Scroll bars disappear as if window wants to resize but it remains the same and scroll bars appear again.

                  $('.nyroModalDom').resize();
                  

                  推荐答案

                  你可以试试这个指令:

                  $.nmTop().resize(true);
                  

                  也就是说,根据我的经验,执行调整大小的正确方法.

                  that is, in my experience, the right way to performe the resizing.

                  更新

                  您可以使用回调 afterResize 添加如下代码来调整高度:

                  You can adjust the height using the callback afterResize adding code like this:

                  $('.image_upload').nm({
                      callbacks: {
                          afterResize: function(nm) {                
                             // to adjust according to your needs                
                             $('nyroModalCont').css('height', $('.nyroModalDom img').height());
                          }
                      }
                  });
                  

                  这篇关于改变 nyromodal 窗口的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:通过引导模式传递多个数据 下一篇:matDialog 不作为对话框打开

                  相关文章

                  <tfoot id='3FKsl'></tfoot>
                  • <bdo id='3FKsl'></bdo><ul id='3FKsl'></ul>

                  <legend id='3FKsl'><style id='3FKsl'><dir id='3FKsl'><q id='3FKsl'></q></dir></style></legend>

                  <small id='3FKsl'></small><noframes id='3FKsl'>

                  <i id='3FKsl'><tr id='3FKsl'><dt id='3FKsl'><q id='3FKsl'><span id='3FKsl'><b id='3FKsl'><form id='3FKsl'><ins id='3FKsl'></ins><ul id='3FKsl'></ul><sub id='3FKsl'></sub></form><legend id='3FKsl'></legend><bdo id='3FKsl'><pre id='3FKsl'><center id='3FKsl'></center></pre></bdo></b><th id='3FKsl'></th></span></q></dt></tr></i><div id='3FKsl'><tfoot id='3FKsl'></tfoot><dl id='3FKsl'><fieldset id='3FKsl'></fieldset></dl></div>