Results 1 to 5 of 5
  1. #1

    How to resize modal popups (NOT properties or tools-like panels)

    Hello there,
    (Note that this question in not related to UI panels like Tools and Properties, which you can resize with ctrl - middle mouse roll)
    I'm trying to use this template script addon here which creates a modal popup when I go into script editing:

    Click image for larger version. 

Name:	modal1.png 
Views:	5 
Size:	73.9 KB 
ID:	505172

    on pressing "addon template generator" a modal popup appears:

    Click image for larger version. 

Name:	modal2.png 
Views:	4 
Size:	154.3 KB 
ID:	505171

    but as you can see it's all cropped and difficult to read. Is there a way to enlarge it? Or by modifying user preferences?
    Every panel like this always opens up cropped...
    I'm on Blender 2.79, Mac Os X Sierra.
    Thank you in advance.



  2. #2
    i think it is using the width defined by the variables in the script

    ae you talking about pop up window script as such
    or window in general like in the tool panel ?

    happy bl
    Nice 3D models = 25 % K.I.S.S + 25 % common sense + 25 % Inspiration + 25 % Knowledge
    Win 10 64 bits / Thanks and a Happy 2.79 with Cycles



  3. #3
    No, not the tools panel or like that. Only this modal popup. Like this:

    Name:  Screen Shot 2017-11-14 at 23.07.44.png
Views: 30
Size:  107.0 KB

    this is the tissue addon modal that comes with blender 2.79. It's clearly cropped...
    Maybe a scaling problem with high density (retina) screens?



  4. #4
    have not use that one a lot
    but I think it has the width it was designed for!

    why do you says it is cropped ?


    thanks
    happy bl
    Nice 3D models = 25 % K.I.S.S + 25 % common sense + 25 % Inspiration + 25 % Knowledge
    Win 10 64 bits / Thanks and a Happy 2.79 with Cycles



  5. #5
    You were right.
    They have the width they gave them when they were designed.
    Here in the addon, line 195:

    def invoke(self, context, event):
    return context.window_manager.invoke_props_dialog(self, width = 400, height=500) # returns {'RUNNING_MODAL'} and calls execute() when 'OK' button is pressed

    changed width to 800 and now I've got:

    Name:  width.png
Views: 18
Size:  115.4 KB

    It changed to double the width. I have a retina screen and this way it fits much better.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •