• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

scrolled_view resizing?

Explorer ,
Mar 21, 2017 Mar 21, 2017

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)

TOPICS
SDK

Views

321

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

I've never figured it out.  simple_list() can't be resized either.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2017 Mar 21, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines