landscape

Disable landscape-mode for mobile devices

自闭症网瘾萝莉.ら 提交于 2019-12-01 14:49:48
Hi there i created a responsive mobile website using this: max-width(480px) {etc..} + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> For every mobile device the website looks the same => great. But when i change to landscape there is more than 480px and the website-variation of the desktop displays. Is there any possibility to disable the auto-rotate or to show the portrait-mode on mobile-device even if there is more than 480px? Greetings You can try and target specific orientation with your media query: @media max-width(600px) and

Disable landscape-mode for mobile devices

こ雲淡風輕ζ 提交于 2019-12-01 13:32:28
问题 Hi there i created a responsive mobile website using this: max-width(480px) {etc..} + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> For every mobile device the website looks the same => great. But when i change to landscape there is more than 480px and the website-variation of the desktop displays. Is there any possibility to disable the auto-rotate or to show the portrait-mode on mobile-device even if there is more than 480px?

itextsharp PdfCopy and landscape pages

房东的猫 提交于 2019-12-01 12:37:20
I'm using itextsharp to join mutiple pdf documents and add a footer. My code works fine - except for landscape pages - it isn't detecting the page rotation - the footer is not centerd for landscape: public static int AddPagesFromStream(Document document, PdfCopy pdfCopy, Stream m, bool addFooter, int detailPages, string footer, int footerPageNumOffset, int numPages, string pageLangString, string printLangString) { CreateFont(); try { m.Seek(0, SeekOrigin.Begin); var reader = new PdfReader(m); // get page count var pdfPages = reader.NumberOfPages; var i = 0; // add pages while (i < pdfPages) {

itextsharp PdfCopy and landscape pages

与世无争的帅哥 提交于 2019-12-01 11:26:17
问题 I'm using itextsharp to join mutiple pdf documents and add a footer. My code works fine - except for landscape pages - it isn't detecting the page rotation - the footer is not centerd for landscape: public static int AddPagesFromStream(Document document, PdfCopy pdfCopy, Stream m, bool addFooter, int detailPages, string footer, int footerPageNumOffset, int numPages, string pageLangString, string printLangString) { CreateFont(); try { m.Seek(0, SeekOrigin.Begin); var reader = new PdfReader(m);

AS3/AIR: If phone use portrait, if tablet use landscape?

末鹿安然 提交于 2019-12-01 09:56:01
问题 Ok, I've written myself a simple DeviceCapabilites class to be able to check if the device is a phone or tablet etc. But I need to be able to say that if the user is on a phone, it should be in portrait mode, and if on tablet I only wanna use landscape mode... Any ideas? EDIT: To make it clear, I want to lock the orientation to portrait mode on phones and then use landscape on tablets. 回答1: Something like this? stage.autoOrients = false; if(YourDeviceCapsClass.isTablet) stage.setOrientation

Get type of terrain by coordinate

陌路散爱 提交于 2019-12-01 08:32:24
I'm looking for a solution to be able determine landscape type by a given coordinate, for example check if current position is water/forest/town/road and so on. I found google.maps.MapTypeStyleElementType object specification in the Google Maps specification, but not sure if it could help me or not. Probably, there are some another Maps API with such functioality? Or maybe I should refer to the different types of offline maps? Nope, the link you send is just for styling the proper features, not to tell which feature is at a given coordinate. If you are interested in landscape, then Corine Land

Android Device onConfigurationChanged event does not handling orientation

荒凉一梦 提交于 2019-12-01 05:50:33
问题 i have an activity and on startup of the activity i need to change the orientation in lanscape and then later on i want to handle both orientation changes as user rotates device , but it once changes the orientation and later on does not change the orientation. here is my code please help public class Hls extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_hls); setRequestedOrientation(ActivityInfo

Android TimePicker not displayed well on landscape mode

帅比萌擦擦* 提交于 2019-12-01 04:09:53
问题 I'm currently building an app targeting API 23, with a minimum API 16. I'm facing an issue where a TimePicker is displayed within an AlertDialog. The display looks fine on Portrait mode and on Landscape mode when launching the app on Nexus 5 API <=22. However, when launching the app on a Nexus 5 API 23, the landscape mode does not correctly display the TimePicker widget, it displays only its background colors. On Nexus 5 API 23 (Portrait): TimePicker on Portrait mode (API 23) On Nexus 5 API

WPF: How do you print in Landscape mode?

試著忘記壹切 提交于 2019-12-01 02:57:05
问题 found this function online, which works great... except I can't figure out how to default it to print in landscape. private void PrintClick(object sender, RoutedEventArgs e) { PrintDialog dialog = new PrintDialog(); if (dialog.ShowDialog() == true) { dialog.PrintVisual(_PrintCanvas, "My Canvas"); } } How does one actually set the default to print my wpf content to landscape mode? 回答1: private void PrintClick(object sender, RoutedEventArgs e) { PrintDialog dialog = new PrintDialog(); if

Rotate one UIViewController in UITabBar application

时光怂恿深爱的人放手 提交于 2019-12-01 01:59:46
I have uitabbar application and I Want to rotate just one ViewController with chart in landscape mode. It's possible to do that? There is no easy way to have only one view in landscape mode, while the others are in landscape, nor an easy way to programmatically switch to landscape mode. One possible approach would be using a CGAffineTransform to transform your view in your viewWillAppear (i.e., right before the view is shown): - (void)viewWillAppear:(BOOL)animated; { //-- Adjust the status bar [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeRight; //--