Jump to content
php.lv forumi
  • 0
foxsk8

jquery resize events

Question

Sveiki tautieši.

 

Kā varētu jquery UI resize funkciju dabot tā, lai bloku varētu resaizot tikai uz augšu vai leju. Uz leju itkā varētu dabot, bet kā panākt to, lai viņš ļautu gan augšu pavilkt blokam, gan apakšu?

 

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

CSS `resize: vertical;`.

Share this post


Link to post
Share on other sites
  • 0

Kā tu to iedomājies? Kam tavuprāt būtu jānotiek ar elementiem, kas atrodas pirms tava bloka, kuru resaizojot, tiem pietrūkst vietas?

Share this post


Link to post
Share on other sites
  • 0

Šobrīd vienkārši sanāk, tāds kā kelndāra tips, kurā atrodās bloki, jeb aizņemto stundu skaits. Opcija paredz, ka velkot uz augšu, leju, palielina bloku, bloks ir absolūts, un nekas viņam netraucē, samazināties, vai palielināties.

Share this post


Link to post
Share on other sites
  • 0

Te arī risinājums. http://jsfiddle.net/N6syV/2/ Protams, divam vēl jāpievieno min-height. 

Share this post


Link to post
Share on other sites
  • 0

Atrisinājums ir tas, ko teicu. Ja tu centies izdarīt kkā savādāk, tu dari to nepareizi.

 

https://developer.mozilla.org/en-US/docs/CSS/resize

 

P.S. Protams, ar pieņēmumu, ka neatbalsti browserus, kuri neatbalsta CSS3.

Share this post


Link to post
Share on other sites
  • 0

DG, css3 man tur neder, kā tu callbacku padosi? Tur ir JS kopā ar php beigās. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...