2 Replies Latest reply on Mar 21, 2017 12:33 PM by raymanningphotography

    scrolled_view resizing?

    raymanningphotography

      Any ideas how to get the scrolled_view to resize with it's parent dialog? fill, fill_horizontal and fill_vertical don't seem to do it.

       

       

      local LrDialogs = import "LrDialogs"

      local LrTasks = import "LrTasks"

      local LrView = import "LrView"

      local LrFunctionContext = import "LrFunctionContext"

       

      local function showCustomDialog()

         LrFunctionContext.callWithContext(

        "showCustomDialog",

        function( context )

       

        local viewFactory = LrView.osFactory()

        local content = viewFactory:scrolled_view

        {

        fill=1,

        fill_horizontal =1,

        fill_vertical =1,

        }

       

        LrDialogs.presentFloatingDialog(

        _PLUGIN,

        {

        title = "My Dialog",

        contents = content,

        resizable = true,

       

        }

        )

        end)

      end

       

       

      LrTasks.startAsyncTask (showCustomDialog)