Popup description should fit on the page within the screen availability.

Posted by Nismeh under jQuery on 5/8/2014 | Points: 10 | Views : 672 | Status : [Member] | Replies : 1
Hi,

I am generating popup on hover. But what i do is i am passing screen position from c#

for ex x:-50 y:-40. This values are in string so it will get used in javascript/jquery.

So it will adjust popup 50px for x-axis and 40px for y-axis.

Now an issue is sometimes popup get generated at bottom side so what happens, popup gets cut. To see full popup i need to scroll my screen. So i want to that my popup get generated in available screen only.

I've an option like i can pass some logically calculation in place of passing -50 or -40. Like (true) ? -50 : -100

IT KNOWLEDGE IS APPLIED KNOWLEDGE
So Just Do It



Responses

Posted by: Vuyiswamb on: 7/7/2014 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Did you try this on All Browsers ?


Thank you for posting at Dotnetfunda
[Administrator]

Nismeh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response