Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 02 20:50
    YakupIpek closed #6081
  • Nov 29 17:39
    eduardoalcantara commented #1390
  • Nov 29 17:39
    eduardoalcantara commented #1390
  • Nov 29 17:38
    eduardoalcantara commented #1861
  • Nov 29 17:38
    eduardoalcantara commented #1861
  • Nov 29 16:54
    eduardoalcantara commented #1390
  • Nov 29 16:54
    eduardoalcantara commented #1861
  • Nov 29 07:28
    Saswat689 opened #6663
  • Nov 11 13:42
    phamquangbaoplus commented #6174
  • Nov 11 11:53
    21r8390 commented #5794
  • Nov 11 11:01
    21r8390 commented #5794
  • Nov 05 02:41
    esdeseace edited #6662
  • Nov 04 17:52
    esdeseace opened #6662
  • Nov 02 02:43
    edazpotato closed #6490
  • Oct 29 15:05
    feiticeir0 commented #6356
  • Oct 28 14:53
    LoganTann commented #6661
  • Oct 28 14:52
    LoganTann commented #6661
  • Oct 28 13:26
    LoganTann commented #6644
  • Oct 28 13:26
    LoganTann commented #6644
  • Oct 28 13:24
    LoganTann commented #6647
Majd Haj Yehia - BestDr
@BestDr
hey,
how can I fix the issue when textarea auto expands and resizes the document element and then the scrollbar appears? it has overflow-y: hidden; yet still the scrollbar appears, the textarea is in another element which is sort of a sidebar and when it overflows height the scrollbar should appear only of the sidebar itself and not the whole document Element.
Sean Doherty
@doughballs
Maybe build a pen but there is a function to update text area, check the docs and maybe run it when you need ( ie on resize)
Majd Haj Yehia - BestDr
@BestDr
I didn't find anything in the docs out of initializing the textarea and making it autoresize, I just want to change the the container that it resizes, it shouldn't resize the whole document, it just has to resize the parent element
I unfortunately can't make a pen, because I am using some jinja2 syntax for Flask, and CodePen won't be able to render it
Sean Doherty
@doughballs
M.textareaAutoResize($('#textarea1'))
I’m not sure, as I’ve never had the issue you’re describing so not sure what the solution is. If you can’t make a pen or share the live link then it’s hard to debug.
Majd Haj Yehia - BestDr
@BestDr
Ok I will try to put it inside a Pen and send it if I can
Majd Haj Yehia - BestDr
@BestDr
@doughballs I fixed it :)
Sean Doherty
@doughballs
Great!
akiragunawan
@akiragunawan
hi, can anyone help me with carousel, im trying to set its height more than 400px
Sean Doherty
@doughballs
@akiragunawan maybe try declaring a height on .carousel and using !
akiragunawan
@akiragunawan
what do you mean by using ! ?
Sean Doherty
@doughballs
!important
akiragunawan
@akiragunawan
im sorry but i dont understand what is that and how to use it, i found nothing in docs
monster153
@monster153
hello I have a question about reinitializing a Carousel it seems the destroy function is not working for some reason if anyone can help i would really appreciate it
i posted a question on stack over flow but no one is answering here is the link
Sean Doherty
@doughballs
@akiragunawan .carousel { height: 500px !important; }
monster153
@monster153
everyone has ignored my question nice so it has no solution
Sean Doherty
@doughballs
@monster153 I responded on Stack Overflow
monster153
@monster153
yeah sorry I did not notice thank sorry I am just very frustrated with this problem
I added the console logs you asked for
monster153
@monster153
@doughballs I edited the code as well in stackoverflow
Majd Haj Yehia - BestDr
@BestDr
does anybody have any idea why clicking a materialize checkbox makes the page scroll and even it looks like it increases the height of a parent element for some reason (I can't figure that element out)
monster153
@monster153
@BestDr when tested there example in the website that did not happen
when I*
Majd Haj Yehia - BestDr
@BestDr
I know I already did that, but when I do it in my website it does
monster153
@monster153
then most likely there is something wrong with your code maybe you imported a library collided with materialize library
like for example bootstrap
Majd Haj Yehia - BestDr
@BestDr
no I don't use any other frontend libraries, I just use materialize, anyways I will test it an empty Pen and then will post here what happens
monster153
@monster153
yes good idea
Majd Haj Yehia - BestDr
@BestDr
hmm I don't know, this doesn't seem to work like in my server, even when I used the exact same code for html, css, javascript - it doesn't have the scroll issue but their parent don't scroll too, so I am not sure what's happening here
Majd Haj Yehia - BestDr
@BestDr
CodePen seems to be way worse, idk what makes this happen but even when the parent element content overflows vertically and the parent has overflow-y: auto; it still doesn't show the scroll bar!
monster153
@monster153
@BestDr have you specified a height for parent ?
i mean in the code pen
Majd Haj Yehia - BestDr
@BestDr
no, it has height of 100%
Anthony House
@tuffant21
@monster153 I ran into this issue as well. I'm a little busy at the moment, so I just want to code dump this here for you
open a console and run tar -xzvf select.tar.gz to extract
Sean Doherty
@doughballs
@monster153 can you try instances[0], and also, I can't see any declaration of your options.
monster153
@monster153
@doughballs instances is not an array sry the variable name is a bit confusing but it just store the instance of initiated carousal
@tuffant21 i am not using select component i have a problem with the carousal
@BestDr try setting the height value with px not precentage
Anthony House
@tuffant21
@monster153 Oh lord. Durp.
monster153
@monster153
@doughballs I think the problem the destroy function does not actually exist even though i am using version 1.000
seano-hub
@seano-hub
image.png
@doughballs okay i am back.. my priority got changed but im back to it..
specifically line 8 of JS where im explicitly setting default date to past date.. what i want is that past date to be selected programmatically ONLY (indicating that this is what user selected last time) and only today and future dates available for selection by user.. and when user selects new date, that is one that will be selected.. so 2 dates will not be selected at same time..
Sean Doherty
@doughballs

@monster153 you are wrong on every level:

instances is always an array, and we access a specific instance by using the index.

.destroy() is a working function of 1.0.0

Check this pen, with logs and working tear-down:

https://codepen.io/doughballs/pen/MWyRGB

If you are set up differently (which it looks like you may be), then I would use the standard set up until it's working and then rework into your preferred project structure.