Questions tagged [displaymode]

18 questions
6
votes
3 answers

Why is viewWillTransitionToSize... not called when displayModeButtonItem triggers splitViewController collapse?

I have a UISplitViewController whose secondary (detail) VC is a UICollectionViewController. I want the cells of the collection to resize based on changes to the size and aspect of the collection view. I trigger this resizing by overriding the…
5
votes
1 answer

Xaml Calendar DisplayMode="Year" not working when used with Grid.Definitions and DataContext

I'm using the calendar in DisplayMode="Year" and this.DataContext = new SampleModel(); so I have a access to the properties of the Model. However the Calendar is rendered wrong (see screenshot) The code comes down to: Xaml:
Stefan
  • 14,826
  • 17
  • 80
  • 143
3
votes
2 answers

R: display mode for single-file shiny app

When using two files (ui.R and server.R), one can change display mode with: runApp("MyApp", display.mode = "showcase") How can I set display mode to "showcase" for single-file shiny app? Thx!
Ollaws
  • 167
  • 1
  • 9
3
votes
1 answer

Swift viewWillTransitionToSize Not Called With Split Screen

I am implementing the split screen feature for the iPad Air 2 and iPad Mini 4. I'm trying to detect when the size of the split screen changes. When running as the primary app, either the viewWillTransitionToSize or willTransitionToTraitCollection…
Mike Walker
  • 2,944
  • 8
  • 30
  • 62
2
votes
2 answers

PWA display standalone & fullscreen not working after add ServiceWorkerModule in Angular 5

Current behavior After add configuration to app module environment.production ? ServiceWorkerModule.register('./ngsw-worker.js') : [] and enable serviceWorker in .angular-cli.json, my application after install on my device (LG G6) through Chrome…
2
votes
0 answers

Using Display modes(for mobile) with ASP.NET MVC 5 ( Core)

Good evening. I am working on Asp.net Mvc 5 ( Now its called "core" ) And i have one problem. its about Display modes. With Asp.net Mvc 4 ,its so easy. Just change File name like index.Mobile.cshtml Then we can handle it. But with Mvc 5, its not…
2
votes
1 answer

How can I prepare a UISplitViewController secondary VC for a change to displayMode?

In iOS8, UISplitViewController changed, and now notifies its delegate of a pending displayMode change via splitViewController:willChangeToDisplayMode:. I need to update some aspects of my secondary view controller in response to this change. It's…
1
vote
1 answer

How to use the correct LWJGL DisplayMode in fullscreen?

I was having issues making my program go fullscreen with: Display.setFullscreen(true); ...but the following answer helped me: LWJGL Fullscreen not working This answer suggested that I iterate through all the available DisplayModes and find the…
Crazy Redd
  • 435
  • 1
  • 5
  • 18
1
vote
1 answer

Customize displayModeButtonItem Appearance

I'm trying to use an image for my displayModeButtonItem in my UISplitViewController. I get the item looking like I want it but it doesn't do anything when tapped on an iPhone. It works fine when using an iPad. UIBarButtonItem *menuItem =…
raginggoat
  • 3,570
  • 10
  • 48
  • 108
1
vote
2 answers

DisplayModeProvider issues

Using DisplayModeProvider to choose between views for "Desktop", "Tablet" and "Phone" in a MVC5 web application. It is my understanding that this class selects the correct provider in order and uses the first provider that returns True. However,…
0
votes
0 answers

Conditional displaymode in Pinescript

in this I got error. I would choose if dispaly "arrows" or background color. But I got error on first plotshape. Do u have the solution? 'display_mode = input.string(title="Display Mode ?", defval="PlotSignals", options=["PlotSignals", "Color…
0
votes
1 answer

Navigation bar Display Mode is not working Perfectly in SwiftUI

I'm using SwiftUI with Version 11.3.1 (11C504). I Implement Tab bar on the Screen and that screen will come after the navigation from login Screen. If navigation displayMode is .automatic so i’am showing a white space(which is in bordered with…
0
votes
1 answer

.NET MVC DisplayModeProvider fallback

I am currently using DisplayModeProvider to check if a mobile request is coming in and serving up a Page.mobile.cshtml file if I detect a mobile request otherwise I'm serving the default page Page.cshtml. This also works as a fall-back - if there is…
mche
  • 616
  • 10
  • 16
0
votes
1 answer

DisplayMode.equals(DisplayMode dm) Confusion

So, I'm making a fullscreen application and ran across something weird. The Method DisplayMode.equals(DisplayMode dm) is overridden but I don't think it's implemented quite right. The following code prints false to the console: public static void…
Avi Caspe
  • 537
  • 4
  • 12
0
votes
1 answer

Can't center inline-block element in parent

So i'm having trouble entering the element with the middle class. So the container box-block-head-yellow had a width of 100% so that it can span any container, the class middle is using display inline-block so that the container wraps around it's…
Tunds
  • 1,804
  • 2
  • 15
  • 30
1
2