Comments (11)
It is now possible to manage the viewport manually in v2.5.0 by passing viewport: false
in the configuration. This should allow you to implement your own solution with bespoke behaviour so we can probably close this issue now.
from scream.
What is the reason you want to use Scream then?
from scream.
I'd like to use the viewchange
event to basically know if it's in minimal view or not and then set an element to the real viewport size with scream.getMinimalViewSize();
from scream.
Is Brim not more suitable for what you do?
from scream.
Not really; I don't want to have a layer element on top of everything. I just want to subscribe to the viewchange
event so I could grab the real, updated viewport size without the navigation bar.
from scream.
Sorry, I got lost myself between two projects. You are right, you should be using Scream.
However, sadly the current implementation starts managing viewport tag upon initiation,
Line 282 in 311b35c
I would accept a PR that makes viewport managing an opt-in, but I don't have time at the moment to update Scream myself.
from scream.
I also just want to know if I am in minimal view or not. Changing the scale breaks my application... Have your find a way to make it work @baptistebriel ?
from scream.
same use case for me, I don't want to update the meta tag, just detect if I am in minimal view or not. any solution here?
from scream.
same use case for me, I don't want to update the meta tag, just detect if I am in minimal view or not. any solution here?
A PR would be welcome.
from scream.
I tried to allow the viewpoint to not be set but unfortunately the calculations for minimal view do not work in most cases when it is not set. I did however take into account the safe area for the iPhone X so the content doesn't clash with the notch when horizontal: #24
from scream.
On reflection, it is perfectly possible to manage the viewport manually in a way that the minimal view calculations still work. This provides much more flexibility, especially with devices that have a notch, so I have added the ability to disable viewport management to PR #24
from scream.
Related Issues (20)
- Broken with latest Scream update. HOT 2
- Chrome in IOS not recognize minimal ui HOT 1
- Using bower to include scream 2.2.0 HOT 1
- dist folder missing from 2.2.1 HOT 5
- unable to embed in a browser HOT 1
- iPhone X issue
- Issues with Iphone X HOT 3
- IPhone X landscape not working HOT 1
- Could deviceSpec() function be dynamic instead of hard-coded? HOT 3
- Typescript support HOT 2
- TypeError: global.addEventListener is not a function HOT 1
- Support for iOS 13
- Use ESHint HOT 1
- Support iOS14 HOT 7
- How to calculate specs for iphone 12 /Pro/Pro Max/ Mini with iOS14 version HOT 2
- scurrentspec merge failed HOT 1
- Bug portrait Orientation HOT 3
- Dynamic values for portrait and landscape widths? HOT 1
- Demo anywhere? HOT 2
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 scream.