Comments (2)
It works fine on my Mac with the newest version.
Screen.Recording.2023-04-23.at.12.44.47.AM.mov
timer.performWithDelay( 5000, function() native.setProperty( "windowSize", { width =100, height = 100 } ) end )
from corona.
Thanks for the testing, because of your post I looked if issue could be somwhere else and found the problem. Just before setting windowSize I set windowMode to normal (from fullscreen). On windows that worked fine but on mac, when you go from fullscreen to windowed mode it is smooth transition that takes split of a second. If you try to set size during that time it will be ignored, whereas on win the transition is immediate, so calling it right after that is ok.
So if anyone encounters the same issue, switching to normal mode from fullscreen and giving it size, from previous code: native.setProperty( “windowMode”, “normal”) native.setProperty( “windowSize”, { width = 100, height = 100 } )
you have to add timer before setting size so app has time to fully transition to windowedMode.
So I had to change previous code to:
native.setProperty( “windowMode”, “normal”) timer.performWithDelay( 1000, function() native.setProperty( “windowSize”, { width = 100, height = 100 } ) end )
I tried also interval of 500 but that was not enough, but 1000 should be long enoug.
from corona.
Related Issues (20)
- [Android] The Android platform does not seem to need to compile libjpeg?
- Google SSO plugin crash HOT 8
- [Win32]: display.newText() , text rendering errors in RTL languages HOT 2
- Will Solar2D consider eliminate vulnerabilities by upgrade some third-party libraries? HOT 3
- Integrate iMessage sticker pack for iOS builds.
- [macOS Ventura]: Coroutines not working HOT 9
- MacOS: crash with display.capture() HOT 2
- Can't build for iOS or tvOS with with Xcode SDK 16.4 HOT 4
- Windows: unsigned binaries for Solar2D 2023.3689+ HOT 3
- system.activate("multitouch") crashes apps built with Solar2D 2023.3689 HOT 2
- Error in logic in NetworkSupport.cpp —> NetworkRequestParameters HOT 1
- windows11/edge last version: HTML5 build not run HOT 2
- [ios]: display.save does not properly save an image that has transparent area HOT 2
- display.colorSample doesn't work as expected. HOT 2
- CoronaBuilder on 3684+ and Xcode 14.3 generates an error when uploading a build to the Apple App Store
- When I try ios native build with *android only* plugin setting in `build.settings`, It will failed.
- App Store must be built with the iOS 16.1 SDK or later HOT 2
- MacOS: Mac App Store apps crash when trying to run them in TestFlight
- [ANDROID]: Live Build App crashing on startup HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corona.