When revisiting a page with a Facebook embed, the embed has a height of 0px.
I've already discussed with Facebook and recorded some screencasts: https://developers.facebook.com/bugs/1562053057141539/
Is there a way to force the widget to recalculate it's height?
Regards,
Christian
Related
Going through NextJS documentation and the built in optimization is impressive. However, I can't seem to find any discussion on minimum width or height parameters.
NextJS - Image Docs
I could set both layout and objectfit to fill and have the parent div determine the height, but that's not as ideal as defining minimums for the image itself.
How would I go about setting a minimum height or width for an image using the built-in component?
Hopefully I'm just blind. Any thoughts would be appreciated.
I resolved the issue as follows - would be curious if there is a better solution so please comment if you disagree with the following:
<div className={styles.imageDiv}>
<Image src={localImage}
height={50} // this doesn't set size, this is just for ratio
width={50}
layout='responsive'
alt='image description'
/>
</div>
The CSS:
.imageDiv {
display: block;
min-width: whatever you want;
// this is also how you would set max-width
// this method also allows height or width to be auto
}
This question already has an answer here:
How to change the size and other properties of the chat window
(1 answer)
Closed 5 years ago.
Is it possible to resize the width of the chat for botframework ? Currently I'm testing on a emulator. Basically I want make my bot chat wider to the right. As you can see in the picture, the chat width remain the same despite me increasing the size of the columns, add more columns, and so on. Currently using adaptive card.
If you are using the iframe embed, you can edit the width of the iframe HTML element by adding the style in-line:
<div id="bot">
<iframe src="https://webchat.botframework.com/embed/..."
style="height: 600px; width: 500px; resize: both;">
</iframe>
Alternatively, if you want greater control you can edit the styling directly to the Web Chat source code -
Customizing Web Chat
we want to know about the responsive design for website. is it applies for
both height and width of the site . can we make a site responsive for height also?
please help me to find solution.
let me know if you have need clarification
thanks in advance.
Most people tend to think of responsive design as being responsive to different screen widths which then allows users to view content optimally on any screen but does mean that they still must scroll to see more content below.
There is however also a school of thought around Vertically Responsive Design which looks at responsive design for height as well as width just as you're looking for.
There is a great article on this here:
http://www.nitinh.com/2013/03/vertically-responsive-design-keeping-things-above-the-fold/
It contains some good little CSS snippets to get you started, generally making use of viewport height to give optimal spacing and sizing for height as well as width using responsive design.
Most modern browser support viewport height but you could also use #media rules in much the same way as you would for width, setting different CSS rules for different screen heights with:
#media screen and ( max-height:540px ){
somecss:rules;
}
There's some further reading on using #media for height here:
http://unmatchedstyle.com/news/height-based-media-queries.php
Hope this helps.
I made an adaptive theme with Drupal 7.22, which works very fine. Unfortunately the size of the iFrame's opened by Colorbox are not adaptive.
To open them, I do the following:
<a class="colorbox" href ="http://mydomain.tld?width=800&height=700&iframe=true">Link</a>
But the width and height properties are hard-coded. How can I specify different values for the width and height properties based on the browser aperture/screen definitions?
For example, all screens which have a width between 0 and 1024px should have a colorbox iFrame with the following properties:
width=800px
height700px
and all screens which have a resolution greater than 1024px should have a colorbox iFrame with the following properties:
width=500px
height400px
Do you have any suggestion on how to make these adaptive?
Take a look at jRespond:
https://github.com/ten1seven/jRespond
that might be the easiest way to accomplish what you are looking for.
Can anyone tell me how this image is resizing? If you remove the bg from the page with firebug you will have a clear vision of the image.
http://canvas.is/images/logo_solid.png
I notice that when the page is scaled the width and height attributes apply and start to scale the image. I have looked through the page and there is no css indicating a percentage width or height and no js in sight.
How is this working?
Thanks
I would tentatively say this is a browser built-in feature as the url ends with image extension, browser know it's not html page, so it would render it in a different way.
Well, I still do not think there is something magical out there, in a normal html page, if you set a fixed width to an image, browser will resize its height automatically. It's more like this scenario:
<div class="image-wrapper">
<img width="100%" src="..."/>
</div>
image would be resized per its original ratio with the width change of image-wrapper