Permalink
Browse files

Removed automatic settings of overflow = hidden on body during initia…

…lization of `ui`
  • Loading branch information...
darkfrog26 committed Oct 25, 2018
1 parent 4a98568 commit 96d9c169419306c4026b717e92206a015adf6fd9
Showing with 2 additions and 5 deletions.
  1. +1 −1 build.sbt
  2. +1 −4 ui/js/src/main/scala/io/youi/ui.scala
@@ -3,7 +3,7 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject
name := "youi"
organization in ThisBuild := "io.youi"
version in ThisBuild := "0.9.0-M21"
version in ThisBuild := "0.9.0-M22-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.6"
crossScalaVersions in ThisBuild := List("2.12.6", "2.11.12")
resolvers in ThisBuild += Resolver.sonatypeRepo("releases")
@@ -1,7 +1,7 @@
package io.youi
import io.youi.component.Container
import io.youi.style.{Overflow, Visibility}
import io.youi.style.Visibility
import io.youi.util.CanvasPool
import org.scalajs.dom.{Event, document, window}
import reactify._
@@ -30,16 +30,13 @@ object ui extends Container(document.body) {
lazy val title: Var[String] = Var(document.title)
title.attach(document.title = _)
window.addEventListener("resize", (_: Event) => {
size.measured.width := window.innerWidth
size.measured.height := window.innerHeight
})
overflow := Overflow.Hidden
AnimationFrame.every(1.second) {
val r = devicePixelRatio / backingStoreRatio
if (r != displayRatio()) {

0 comments on commit 96d9c16

Please sign in to comment.