Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
I've never figured it out. simple_list() can't be resized either.
Copy link to clipboard
Copied
Hmmm... I think I saw some "experimental" code you may have written that looked like it was getting into the Afx objects. Thought about looking into that a bit more for this solution but after looking for how to delete a LrKeyword and finding out you can't, dashes my hopes for a plugin that is both user friendly and usable.