INWTlab / shinyMatrix

https://inwtlab.github.io/shinyMatrix/
Other
19 stars 6 forks source link

Columns not aligning in matrixinput #13

Closed SusmithBarigidad closed 3 years ago

SusmithBarigidad commented 4 years ago

Hi Team, Columns are not aligned when there are more than 1 columns in the matrix. Please find the attached image for reference :

RshinyMatrixIssue
aneudecker commented 4 years ago

Hi @SusmithBarigidad,

thanks for reporting this. Could you provide a minimal code example and describe what you mean by "not aligned"?

SusmithBarigidad commented 4 years ago

m <- matrix(runif(12), 6, 2, dimnames = list(NULL, c("x", "y"))) ui <- fluidPage( titlePanel("shinyMatrix: Simple App"),
matrixInput( "sample", value = m, rows = list( extend = FALSE),
cols = list( names = TRUE ) ) )

server <- function(input, output, session) { output$scatter <- renderPlot({ plot(input$sample, col = "red", main = "Scatterplot")
}) } shinyApp(ui, server)

Please find the code minimal attached, "not aligned" : i mean to say that column names 'x' and 'y' will be not structured as per columns : same example is shown in the above screenshot for column names - 'Monthly Paid' and 'Yearly Paid ' i assume this is html bug

aneudecker commented 4 years ago

@SusmithBarigidad I cannot reproduce this. With the code you provided I get on Google Chrome

image

Which browser are you using?

SusmithBarigidad commented 4 years ago

@aneudecker We also used google chrome but not getting the same output

aneudecker commented 4 years ago

Which version of shinyMatrix are you using? Please try to install the current version using devtools::install_github("shinyMatrix")