foxsk8 Posted January 16, 2013 Report Share Posted January 16, 2013 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? Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted January 16, 2013 Report Share Posted January 16, 2013 CSS `resize: vertical;`. Quote Link to comment Share on other sites More sharing options...
0 xPtv45z Posted January 16, 2013 Report Share Posted January 16, 2013 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? Quote Link to comment Share on other sites More sharing options...
0 foxsk8 Posted January 16, 2013 Author Report Share Posted January 16, 2013 Š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. Quote Link to comment Share on other sites More sharing options...
0 foxsk8 Posted January 16, 2013 Author Report Share Posted January 16, 2013 Te arī risinājums. http://jsfiddle.net/N6syV/2/ Protams, divam vēl jāpievieno min-height. Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted January 16, 2013 Report Share Posted January 16, 2013 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. Quote Link to comment Share on other sites More sharing options...
0 indoom Posted January 17, 2013 Report Share Posted January 17, 2013 hmm, ja jau ir handles: 'n, s', tad onresize funkcija nav lieka tur? Quote Link to comment Share on other sites More sharing options...
0 foxsk8 Posted January 17, 2013 Author Report Share Posted January 17, 2013 DG, css3 man tur neder, kā tu callbacku padosi? Tur ir JS kopā ar php beigās. Quote Link to comment Share on other sites More sharing options...
Question
foxsk8
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?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.