Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
@devlights
devlights / hello-apple.md
Created July 1, 2022 10:03 — forked from Linrstudio/hello-apple.md
solutions for window.innerWidth / innerHeight issue in iOS9

iOS9 returns double the value for window.innerWidth & window.innerHeight
The versions that are concerned are: 9.0.0, 9.0.1, 9.0.2

A few people got mad on twitter:

window.innerWidth in iOS 9 Safari returns double the number it did in iOS 8? Is this real life? tell me no — @rachsmithtweets
iOS9 Safari has the most insane bug where window.innerWidth / innerHeight is *sometimes* twice as large as it should be. ughhhh. !? — @mattdesl

iOS9 innerWidth/innerHeight is having a lot of fun these days — @ayamflow

@devlights
devlights / .vimrc
Last active May 22, 2024 08:34 — forked from kazmura11/.vimrc
"---------------------------------------------------------------------------
" 全体設定:
"
" VI互換モードをOFF
set nocompatible
" ファイルタイプ検出をON
filetype on
" ファイルタイプに応じたプラグインのロードをON
filetype plugin on
" ファイルタイプに応じたインデント設定のロードをON
@devlights
devlights / MainWindow.xaml
Last active August 29, 2015 14:22 — forked from flq/NonTopmostPopup.cs
Draggable, Non Topmost, Click to BringToFront Popup Sample. (ドラッグ可能で状態に応じてTopMostを切り替えるPopup(クリックすると前面に来るよう調整済み))
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:exControls="clr-namespace:NonTopmostPopupSample.ExControls"
xmlns:behaviors="clr-namespace:NonTopmostPopupSample.Behaviors"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
x:Class="NonTopmostPopupSample.MainWindow"
Title="Non Topmost Popup Sample"
Height="426"