mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Fix issue where rendering webamp would cause a small jump
This commit is contained in:
parent
d42a494938
commit
b2a38f22e5
1 changed files with 8 additions and 1 deletions
|
|
@ -57,7 +57,14 @@ export default class WebampComponent extends React.Component {
|
|||
ref={node => (this._ref = node)}
|
||||
>
|
||||
<img
|
||||
style={{ width: "100%", height: "100%" }}
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
// Webamp measure the scrollHeight of the container. Making this a
|
||||
// block element ensures the parent element's scrollHeight is not
|
||||
// expanded.
|
||||
display: "block"
|
||||
}}
|
||||
src={this.props.screenshotUrl}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue