<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gsf_zero1</author_name>
  <author_url>https://blog.hatena.ne.jp/gsf_zero1/</author_url>
  <blog_title>いろいろ備忘録日記</blog_title>
  <blog_url>https://devlights.hatenablog.com/</blog_url>
  <categories>
    <anon>web</anon>
  </categories>
  <description>概要 参考情報 概要 忘れないうちにメモメモ。。。 現在、使っているのは iOS 15.5 です。 Web画面作っていて、端末の向きを縦横変更した際に何故か window.innerWidth と window.innerHeight が微妙にずれた値になる・・・という現象が発生していました。 Safariだけ現象が発生するんですよねーChromeさんは何の問題もないです。 私の知識不足だったのですが、いろいろ調べて最終的に以下の情報でうまくいきました。 gist.github.com 私の場合は、viewportのmeta タグに上に記載されている shrink-to-fit=no を追加す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2022%2F07%2F05%2F073000&quot; title=&quot;iOS Safari で window.innerWidthとinnerHeight が微妙にずれる (縦横の向きを切り替えたとき） - いろいろ備忘録日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-05 07:30:00</published>
  <title>iOS Safari で window.innerWidthとinnerHeight が微妙にずれる (縦横の向きを切り替えたとき）</title>
  <type>rich</type>
  <url>https://devlights.hatenablog.com/entry/2022/07/05/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
