Dropdowns not extending in shiny tabPanel

When a dropdown box is included as part of a tab panel in a shiny app, it doesn't behave in the same way as outside of a tab panel. Outside of a tab panel, when it is active, it extends beyond the element that contains it, but as a tab panel it is constrained, making it very difficult to use.

I would like to be able to use tab panels in a sidebarPanel, can anyone suggest how to get them to behave?

<strong>In a tab panel (problematic)</strong>

library(shiny) runApp(list( ui = pageWithSidebar( headerPanel("Dropdown issues in panels"), sidebarPanel( tabsetPanel(id="tabsetLeft", tabPanel("Panel1", selectInput("select1", "Select", 1:5) ))), mainPanel()), server = function(input, output) {}))

<strong>Outside a tab panel (how I want it work)</strong>

library(shiny) runApp(list( ui = pageWithSidebar( headerPanel("Dropdown issues in panels"), sidebarPanel( selectInput("select1", "Select", 1:5)), mainPanel()), server = function(input, output) {}))


You need to add some css. The overflow on the .tab-content needs to be visible"

.tab-content { overflow: visible; }

You can add this in a styles.css in a www folder in your app directory or inline:

library(shiny) runApp(list( ui = pageWithSidebar( headerPanel("Dropdown issues in panels"), sidebarPanel( tabsetPanel(id="tabsetLeft", tabPanel("Panel1", selectInput("select1", "Select", 1:5) ))), mainPanel(tags$head(tags$style(type="text/css", ".tab-content {overflow: visible;}")))), server = function(input, output) {}))

人吐槽 人点赞


  • Can't get Google Scripts working
  • How do I set an environment variable for airflow to use?
  • In R shiny, how to use on the UI side a value computed on the SERVER side?
  • Is it safe to combine sizeof and placement new?
  • Problems determining a file's mime type in ColdFusion
  • SonarQube VSTS extension pull request commenting
  • Creating two objects in Rails 4 controller with strong_params
  • Retrieving the “canonical value” from a Set where T has a custom equals()
  • asp.net mvc - extending the registration page (membership) versus new user table (profile) - are the
  • Fix pixman_region_init_rect bug
  • StructureMap and Nested Generics
  • News Search API V5 paging results with offset and count
  • What is [Application] in Mono for Android?
  • is DirectorySearcher.SizeLimit = 1 for FindAll() equal to FindOne() [DirectoryServices/.net]
  • How do I migrate a Launchpad project to GitHub including the Bug/Issues?
  • How to use Twig date to show week day in Chinese text?
  • Constructors accepting string reference. Bad idea?
  • Fully-qualified urls in HTTP Location header. Why it is important?
  • Oracle - How to enforce rules on relationships depending on attributes records (simple example)
  • How to log final SQL queries with hibernate
  • Replacing seconds since the epoch with ordered digits in R
  • Can I null an object with its own extension method?
  • Sql XML Path with different children
  • is there a 64-bit msdasql for windows 7?
  • How do I deal with closed topological heads in Mercurial?
  • chosen allow_single_deselect is not working as expected
  • Many video tags on page in single page application (angular) makes page frozen
  • Insert an Arabic text MySQL
  • Error message when deploying app to Shinyapps.io
  • How can I find a list of all tickets that are linked to issues that have been resolved?
  • OWL reasoning: Necessary and sufficient conditions for inferring a property
  • Does Django natively support migrations
  • SQL Server varchar(50) and varchar(128) performance difference [duplicate]
  • about WifiManager.bundle
  • Can a SqlServer trigger push to ActiveMQ
  • Can Silverlight do peer-peer comms without a server or ship a “local server”?
  • Variable assignment in batch
  • visual studio code go to a tab by number
  • Using sed to find and append multiple files with multiple lines?
  • Same cURL script works in dev. Can't figure out why not in production
  • Is this method of file locking acceptable?
  • How to create and run an example Vulkan app on the Android emulator?
  • Best Data Structure for this Multithreaded Use Case: Is Intrusive List good?
  • CSS3 Bugs - Issues when using transform:rotate rules (Safari + Firefox)
  • Google Datastore - Not Seeing 1 Write per Second per Entity Group Limitation
  • What is the run time of String.toCharArray()?
  • Why is Node cluster.fork() forking the parent scope when implemented as a module
  • Treat MSBuild exec task timeout as an error
  • Equivalent to Application.ScreenUpdating Property in office-js Excel add-in
  • Visual Studio 2015 Using Incorrect Cordova Version
  • setting path in terminal
  • URL detection adobe air desktop widget
  • Ruby array hash keys
  • AS3: Call gotoAndStop() on MainTimeline, from document class
  • Is it possible to secure whole Controller in Symfony 2?
  • Zend_Form Array Based Element Setup and Retreival
  • Rounding time off to the nearest second - Python
  • Relative CSS urls in Webpack
  • How to reduce SSRS PDF Export Size
  • How can we trace push notifications being sent to the Apple APNS server from IBM MobileFirst 7.0?
  • How to avoid truncated bubbles when elasticX or elasticY
  • PHP Fatal error on line number that doesn't exist
  • Visual Studio 2015 has no debug option beyond Remote Machine
  • Light Client using Windows Socket and Excel VBA
  • Visual Studio .NET 2003 - Ignore Specific Library for libcmt vs libcmtd
  • How to get OS version and Device Name of an Android device connected via USB with C#.net (VS2010/4.0
  • How can SonarQube be used to view results for specific directories (packages) of a project?
  • CoreBlueTooth delegate didWriteValueForCharacteristic called with a value null
  • MVC5 custom error page
  • Zend DB Select with multiple table joins
  • angularjs find properties of div in directive
  • UINavigationController alternatives
  • Errors building R-packages for conda
  • keras import fails “no module named contrib.ctc”
  • How to add Custom plugins into KeystoneJS Admin UI ?
  • PyPandoc in combination with PyInstaller
  • VBScript - Error 0x80041017 (null)
  • Rails - Redundant RESTFUL Actions for map.resources? (new, create)
  • Android app preferences are being cleared automatically
  • Create a read-only/immutable copy of any object (including deep properties)
  • Android, Problems parsing json returned by a 422 response
  • How to retrieve 3D models from Google Earth?
  • Python to exe: py2exe issues with pkg_resources
  • Proving if n = m and m = o, then n + m = m + o in Idris?
  • How to customise JIDE grids in Matlab
  • Allowing user css
  • Cypher query, Load CSV not responding in Neo4j 2.1
  • Scaling Azure cloud services geographically across multiple data centers [closed]
  • TabWidget will not display, even though it displays in ADT editor
  • NodeJs: Cancel function call if it takes too long
  • Produce a script to hit Google once a day and log our SERP position?
  • Gradle Thrift Plugin by Example
  • Failed to start an instrument test from Firebase gcloud command line
  • Creating html helpers without encoding
  • Obtaining max of unsigned integer with bitwise not on zero value
  • GWT: Calling external JavaScript library (sjcl) method
  • Fiddler is not showing HTTPS traffic
  • React Native - get refs of custom components in listview from renderRow
  • How would you model data variables variance on common scheme? SQL
  • Custom variables on product details page in Magento
  • .NET compiled third-party DLL reference conflict
  • POST XML data with Groovy HTTPBuilder
  • is OTP needed if my state does not change?
  • Setting up IntelliJ Idea remote debugging with XDebug
  • Necessary to pin_ptr on C++ CLR Value types, why?
  • xcode 4.3.2 process hangs
  • Finding references in Visual Studio
  • Making a panel persist despite click on page opened in browser
  • Linking To V8 Snapshot
  • Extracting infromation from multiple JSON files to single CSV file in python
  • C++ exception safety paranoia: how much is too much?
  • Bundle install fails - Gem using github url - What is wrong?
  • Why does Internet Explorer sometimes trigger a local storage event before the data's ready? [du
  • Cannot use an @IdClass attribute for a @ManyToOne relationship
  • Declaration of does not work with Ionic's ion-nav-view in IBM MobileFirst
  • Can one add a complex type item to ListModel?
  • jBCrypt 0.3 C# Port (BCrypt.net)
  • Is there an API (SOAP, JSON, XML-RPC, REST, anything) to Google Code Issues?
  • Does “internal” visibility modifier in Kotlin work yet?
  • It is possible use the same sql azure instance from two different cloud service of two different sub
  • react split panel resize
  • How to display special characters in SQL server 2008?
  • How can we prepend rows to a react native list-view?
  • c++ regex_replace not doing intended substitution
  • hibernate sets dirty flag (and issues update) even though client did not change value
  • SonarQube: Cannot deactivate rule with missing quality profile
  • How to generate and display a QR Code in ionic 2
  • ListItem.Attributes.Add not working
  • Atlas images wrong size on iPad iOS 9
  • How to do unit test for HttpContext.Current.Server.MapPath
  • How can I estimate amount of memory left with calling System.gc()?
  • Why winpcap requires both .lib and .dll to run?
  • reshape alternating columns in less time and using less memory
  • Comment

    用户名: 密码:
    验证码: 匿名发表


    查看评论:Dropdowns not extending in shiny tabPanel