以下のようなCSSでモーダルウィンドウを作ると、縦幅がウィンドウを超えた時、Overflow:hiddenがかかったようになり見えなくなる。かといって、position: absoluteではスクロールすると背景のコンテンツが追従しないのでおかしなことになる。
CSS: .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; } .modalInner { ... }
なので、以下のように修正すると、中身のコンテンツがスクロールするようになる。というか、普通にoverflow-y: scroll入れるだけやったわ。
CSS: .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow-y: scroll; } .modalInner { ... }