Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jqui_resizable cannot return the current size in time #77

Open
Jonesmacke2 opened this issue Jun 21, 2021 · 4 comments
Open

jqui_resizable cannot return the current size in time #77

Jonesmacke2 opened this issue Jun 21, 2021 · 4 comments
Labels

Comments

@Jonesmacke2
Copy link

jqui_resizable cannot return the current size in time. Usually the returned size is the last adjusted size.

@Yang-Tang Yang-Tang added the bug label Jul 4, 2021
Repository owner locked and limited conversation to collaborators Jul 4, 2021
Repository owner unlocked this conversation Jul 4, 2021
@Yang-Tang Yang-Tang reopened this Jul 4, 2021
@Yang-Tang
Copy link
Owner

Hi @Jonesmacke2 , with the commit 0b35989, jqui_resizable is now rerunning the correct size. Let me know if there are any problems.

@Jonesmacke2
Copy link
Author

Thanks to the author for maintaining the code efficiently! There is another bug: when jqui_resizable was used in renderUI, jqui_resizable cannot get the correct plotOutput ID, but the uiOutput ID

@Yang-Tang
Copy link
Owner

Hi @Jonesmacke2 Thanks again for identifying the new issue. The ID problem is now fixed with ac8ad77

@drag05
Copy link

drag05 commented Apr 27, 2023

My plot resizes only after browser page is toggled between "full page" and "normal page" (F11 key)

Should this be open as new issue or is this a browser issue?

I have a shiny app built in modules.

The module UI is

plotUI = function(id, label = 'plots') {
        ns = NS(id)
             ui = tagList(
             plotOutput(ns('spc')
                    , height = '450px'
                    , width = '880px'
      )
  )
}

The output of this module in the app UI is

mainPanel( withSpinner(plotUI('spc'), type = 7, color = '#5104e1') )

The app server includes

jqui_resizable(ui = ".shiny-plot-output", operation = 'enable')  ## the first line of code in app server

# plot SPC charts
plotServer('spc', data = fdt())  ## the module plotServer

I have tried with and without spinner and got the same result: able to drag the corner to any size but then I have to toggle the browser page to resize the plot on screen. Also, the spinner functionality disappears once I implement resizable plot. Please advise, thank you!

UPDATE: I am posting a link to show what I meant: between dragging the corner and resizing the plot as shown in the animation, I need to toggle the browser page between full and normal, in any succession.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants